/* ============================================
   ROOT & FONTS
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&family=Montserrat:wght@500;600;700&display=swap');

:root {
    --primary-dark: #1E3A5F;
    --accent: #C65B3C;
    --accent-dark: #9E3E22;
    --accent-light: #E27E5E;
    --bg-body: #F9F9FB;
    --bg-card: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #5A6874;
    --border-light: #E2E8F0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
    --radius-card: 16px;
    --radius-btn: 40px;
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, .logo, .nav-links a, .footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 1.25rem; letter-spacing: -0.3px; }

/* HEADER & NAVIGATION */
.header {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F2A3F 100%);
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 48px;
    padding: 8px 18px;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.search-bar i {
    color: var(--text-muted);
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
}

.search-bar input::placeholder {
    color: #aaa;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons a {
    color: white;
    font-size: 1.3rem;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.header-icons a:hover { color: var(--accent-light); }

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 20px;
    padding: 2px 6px;
}

.nav-menu {
    background: rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    padding: 12px 0;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 4px;
}

#burger-toggle { display: none; }

/* FOOTER */
.footer {
    background: #0F2A3F;
    color: #CBD5E1;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: var(--radius-btn);
    padding: 12px 28px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 91, 60, 0.3);
    background: linear-gradient(135deg, var(--accent-dark), #7A2E16);
}

.auth-section {
    padding: 80px 0;
}

.auth-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 36px 30px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-card form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.auth-card form input {
    width: 100%;
    border-radius: 18px;
}

.auth-card .btn-primary {
    width: 100%;
}

.auth-info {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-info a {
    color: var(--accent);
    text-decoration: none;
}

.auth-info a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.auth-error {
    color: #B91C1C;
    margin-top: 12px;
    min-height: 1.5rem;
}

.input-wrap {
    position: relative;
    display: block;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 12px 48px 12px 42px;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    background: #FAFBFC;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 91, 60, 0.1);
    background: white;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    cursor: pointer;
    font-size: 1rem;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s;
    z-index: 2;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(198,91,60,0.08);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-btn);
    padding: 10px 24px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* BREADCRUMBS */
.breadcrumbs {
    font-size: 0.85rem;
    margin: 20px 0;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

/* CATALOG PAGE */
.catalog-layout {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.filters-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-group {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-item input { width: 18px; height: 18px; accent-color: var(--accent); }

.price-range {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.price-range input {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}


/* ============================================
   CATALOG HEADER & TOOLBAR
============================================ */
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 20px;
}
.catalog-header h1 {
  margin: 0;
  font-size: 1.8rem;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.view-modes {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.view-btn {
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}
.view-btn:hover { color: var(--text-dark); }
.view-btn.active {
  background: var(--primary-dark);
  color: white;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.sort-control label {
  color: var(--text-muted);
  white-space: nowrap;
}
.sort-control select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ============================================
   FILTERS SIDEBAR
============================================ */
.filters-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

/* ============================================
   CATALOG CONTENT
============================================ */
.catalog-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   PRODUCT GRID — 5 COLUMNS
============================================ */
.product-grid {
  display: grid;
  gap: 20px;
}
.product-grid.view-grid {
  grid-template-columns: repeat(5, 1fr);
}
.product-grid.view-list {
  grid-template-columns: 1fr;
}
.product-grid.view-compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ============================================
   ENHANCED PRODUCT CARD
============================================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-img {
  position: relative;
  height: 200px;
  background: #F1F5F9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.discount-badge-big {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 2;
}

.quick-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 2;
  opacity: 0;
}
.product-card:hover .quick-add { opacity: 1; }
.quick-add:hover { background: var(--accent); color: white; }
.quick-add.disabled { opacity: 0.3; cursor: not-allowed; }
.quick-add.added { background: #28a745; color: white; }

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

.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #f5b342;
}
.product-card-rating span {
  color: var(--text-muted);
  margin-left: 4px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-card-price .current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.product-card-price .old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.btn-card-full {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  margin-top: 8px;
  justify-content: center;
}
.btn-card-full.disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ============================================
   LIST VIEW
============================================ */
.view-list .product-card {
  flex-direction: row;
  gap: 0;
}
.view-list .product-card-img {
  width: 260px;
  min-height: 200px;
  height: auto;
  flex-shrink: 0;
}
.view-list .product-card-body {
  padding: 20px;
}
.view-list .quick-add { display: none; }
.view-list .product-card-title { font-size: 1.1rem; -webkit-line-clamp: 1; }
.view-list .product-card-price .current-price { font-size: 1.3rem; }
.view-list .btn-card-full { width: auto; padding: 10px 24px; }

/* ============================================
   COMPACT VIEW
============================================ */
.view-compact .product-card-img { height: 140px; }
.view-compact .product-card-body { padding: 10px; gap: 4px; }
.view-compact .product-card-title { font-size: 0.8rem; -webkit-line-clamp: 1; }
.view-compact .product-card-category { display: none; }
.view-compact .product-card-rating { font-size: 0.65rem; }
.view-compact .product-card-price .current-price { font-size: 0.9rem; }
.view-compact .product-card-price .old-price { font-size: 0.65rem; }
.view-compact .btn-card-full { display: none; }
.view-compact .product-card-footer { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ============================================
   BADGES
============================================ */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* ============================================
   EMPTY STATE
============================================ */
.empty-state {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================
   PRODUCT PAGE — ENHANCED
============================================ */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}
.qty-selector button {
  background: #f8f9fa;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}
.qty-selector button:hover { background: #e9ecef; }
.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-lg i { margin-right: 8px; }

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

.product-short-info {
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.meta-row i { width: 16px; color: var(--accent); }

.discount-pct {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ============================================
   PRODUCT TABS
============================================ */
.product-tabs {
  margin-top: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafb;
}
.tab-btn {
  padding: 16px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-content {
  display: none;
  padding: 28px;
  line-height: 1.7;
}
.tab-content.active { display: block; }

.chars-table {
  width: 100%;
  border-collapse: collapse;
}
.chars-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.chars-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 200px;
}

/* ============================================
   RELATED PRODUCTS
============================================ */
.related-section {
  margin-top: 40px;
}
.related-section h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.related-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
}
.related-scroll .product-card {
  min-width: 220px;
  scroll-snap-align: start;
}

/* standalone price classes (used outside cards) */
.current-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================
   CART PAGE (existing)
============================================ */
.cart-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.cart-items {
    flex: 2;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 16px 8px;
    border-bottom: 1px solid var(--border-light);
}

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

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

.cart-img {
    width: 70px;
    height: 70px;
    background: #EFF3F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-title {
    font-weight: 500;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.remove-item {
    color: var(--text-muted);
    cursor: pointer;
}

.cart-summary {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
}

.promo {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.promo input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 40px;
}

.related-cart {
    margin-top: 40px;
}

.related-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0;
}

.related-scroll .product-card {
    min-width: 240px;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.admin-stat-card p {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--border-light);
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #F8FAFC;
}

.product-page {
    margin-top: 16px;
}

.product-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.product-gallery,
.product-details {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.product-main-img {
    width: 100%;
    min-height: 360px;
    background: #F1F5F9;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-meta {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.product-details h1 {
    margin-bottom: 14px;
}

.price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.detail-item {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #F1F5F9;
}

/* PROFILE PAGE */
.profile-layout {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.profile-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-sidebar ul {
    list-style: none;
}

.profile-sidebar li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
}

.profile-sidebar li.active {
    background: #F1F5F9;
    color: var(--accent);
    font-weight: 600;
    padding-left: 12px;
}

.profile-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: #F9FAFE;
}

.doc-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-bottom: 12px;
}

.doc-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-signed { background: #DCFCE7; color: #15803D; }
.status-pending { background: #FEF9C3; color: #A16207; }

.search-bar-main {
    flex: 1;
    max-width: 500px;
}

.search-bar-main input {
    padding: 12px 18px;
    font-size: 1rem;
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--accent-dark);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 8px;
}

.icon-item:hover {
    background: rgba(255,255,255,0.1);
}

.icon-item span {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 0 0 0;
    font-size: 16px;
    transition: var(--transition);
    display: none;
    line-height: 1;
}
.logout-btn:hover {
    color: var(--accent-light);
}

/* MAIN PAGE SECTIONS */
.categories-section {
    padding: 60px 0;
    background: #F8FAFC;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.category-card i {
    font-size: 2.5rem;
    color: var(--accent);
}

.category-card span {
    font-weight: 600;
    font-size: 1rem;
}

.banners-section {
    padding: 60px 0;
    background: white;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.banner-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    border-radius: var(--radius-card);
    padding: 32px;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-md);
}

.banner-content {
    flex: 1;
}

.banner-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.banner-content p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.banner-img {
    opacity: 0.8;
}
.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-section {
    padding: 60px 0;
    background: #F8FAFC;
}

.popular-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* FOOTER COLUMNS */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--transition);
}

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

/* MOBILE */
@media (max-width: 1400px) {
  .product-grid.view-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .product-grid.view-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-main { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .burger { display: flex; }
    .nav-menu {
        display: none;
        width: 100%;
        background: #0F2A3F;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 16px;
        z-index: 50;
    }
    #burger-toggle:checked ~ .nav-menu {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 12px;
    }
    .product-grid.view-grid { grid-template-columns: 1fr 1fr; }
    .view-list .product-card { flex-direction: column; }
    .view-list .product-card-img { width: 100%; min-height: 200px; }
    .filters-sidebar { width: 100%; }
    .catalog-header { flex-direction: column; align-items: flex-start; }
    .catalog-toolbar { width: 100%; justify-content: space-between; }
    .form-row { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .banner-card { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .tabs-header { overflow-x: auto; }
    .tab-btn { padding: 12px 16px; font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .product-grid.view-grid { grid-template-columns: 1fr; }
  .product-grid.view-compact { grid-template-columns: repeat(2, 1fr); }
}
