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

:root {
  --color-primary: #f08228;
  --color-primary-dark: #d4701f;
  --color-bg: #f2ede5;
  --color-border: #ede1cf;
  --color-white: #fff;
  --color-dark: #212529;
  --color-text: #4a4a4a;
  --color-muted: #7a7a7a;
  --font-family: 'DM Sans', sans-serif;
  --border-radius: 20px;
  --border-radius-sm: 10px;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.header-top a {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 20px;
}

.header-top a:hover { color: var(--color-primary); }

.header-main {
  padding: 15px 0;
}

.logo img { height: 45px; }

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.logo span em {
  color: var(--color-primary);
  font-style: normal;
}

/* Navigation */
.main-nav .nav-link {
  font-weight: 500;
  color: var(--color-dark) !important;
  padding: 8px 15px !important;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-primary) !important;
  background: var(--color-bg);
}

.main-nav .dropdown-item {
  font-weight: 400;
  color: var(--color-dark);
  padding: 8px 20px;
}

.main-nav .dropdown-item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Cart icon */
.cart-btn {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 8px 18px;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

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

/* ===================== BUTTONS ===================== */
.btn-primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(240,130,40,0.35);
}

.btn-outline-primary {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

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

.btn-secondary {
  background: var(--color-bg) !important;
  border-color: var(--color-border) !important;
  color: var(--color-dark) !important;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--color-border) !important;
}

/* ===================== HERO ===================== */
.hero-section {
  background: linear-gradient(135deg, #3a2e26 0%, #5a4e46 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.hero-section .container { position: relative; }

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-section h1 span { color: var(--color-primary); }

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

/* ===================== CATEGORIES GRID ===================== */
.categories-section {
  padding: 60px 0;
  background: var(--color-bg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--color-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-dark);
  display: block;
  transition: all 0.3s;
  height: 100%;
}

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

.category-card .icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  transition: all 0.3s;
}

.category-card:hover .icon {
  background: var(--color-primary);
  color: white;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ===================== PRODUCT CARD ===================== */
.products-section { padding: 60px 0; }

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card .product-image {
  background: var(--color-bg);
  padding: 20px;
  text-align: center;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
}

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

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

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
  flex: 1;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover { color: var(--color-primary); }

.product-card .product-code {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

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

.product-price .price-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
  display: block;
}

.product-card .product-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* ===================== SHOP PAGE ===================== */
.shop-sidebar {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.filter-title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.filter-item a {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.filter-item a:hover,
.filter-item a.active { color: var(--color-primary); font-weight: 600; }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail .product-image-main {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--color-border);
  margin-bottom: 15px;
}

.product-detail .product-image-main img {
  max-height: 350px;
  max-width: 100%;
  object-fit: contain;
}

.product-detail .product-info { padding-left: 20px; }

.product-detail .price-big {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-detail .price-without-vat {
  font-size: 1rem;
  color: var(--color-muted);
}

.product-attrs {
  background: var(--color-bg);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--color-border);
}

.product-attrs table { width: 100%; }
.product-attrs td { padding: 6px 0; font-size: 0.9rem; }
.product-attrs td:first-child { color: var(--color-muted); width: 140px; }
.product-attrs td:last-child { font-weight: 500; }

/* ===================== CART ===================== */
.cart-table th {
  background: var(--color-bg);
  border-color: var(--color-border);
  font-weight: 600;
  color: var(--color-dark);
}

.cart-table td { vertical-align: middle; }

.cart-summary-box {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--color-border);
}

/* ===================== CHECKOUT ===================== */
.checkout-form .form-label {
  font-weight: 500;
  color: var(--color-dark);
}

.checkout-form .form-control,
.checkout-form .form-select {
  border-color: var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 15px;
}

.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(240,130,40,0.25);
}

.order-summary-box {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--color-border);
  position: sticky;
  top: 90px;
}

.payment-option, .shipping-option {
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.payment-option:has(input:checked),
.shipping-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(240,130,40,0.05);
}

/* ===================== THANK YOU PAGE ===================== */
.thankyou-box {
  text-align: center;
  padding: 60px 30px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
}

/* ===================== ADMIN ===================== */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #2c2c2c;
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  padding: 0;
  z-index: 200;
}

.admin-sidebar .sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  font-weight: 700;
}

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

.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.7) !important;
  padding: 12px 20px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: white !important;
  background: rgba(255,255,255,0.1);
  border-left-color: var(--color-primary);
}

.admin-content {
  margin-left: 240px;
  padding: 30px;
  background: #f8f8f8;
  min-height: 100vh;
}

.admin-header {
  background: white;
  padding: 15px 30px;
  margin: -30px -30px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.admin-card {
  background: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table th {
  background: #f8f8f8;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-muted);
  border-bottom: 2px solid #e0e0e0;
}

.admin-table td { vertical-align: middle; }

/* Status badges */
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-processing { background: #fff3e0; color: #e65100; }
.badge-shipped { background: #f3e5f5; color: #6a1b9a; }
.badge-delivered { background: #e8f5e9; color: #1b5e20; }
.badge-cancelled { background: #ffebee; color: #b71c1c; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #2c2c2c;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}

.site-footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
}

.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 3px 0;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--color-primary); }

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

/* ===================== BREADCRUMB ===================== */
.breadcrumb-section {
  background: var(--color-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb { margin: 0; font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-muted); }
.breadcrumb-item a { color: var(--color-text); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item.active { color: var(--color-muted); }

/* ===================== ALERTS ===================== */
.alert { border-radius: var(--border-radius-sm); border: none; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-danger { background: #ffebee; color: #c62828; }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* ===================== PAGINATION ===================== */
.pagination .page-link {
  color: var(--color-dark);
  border-color: var(--color-border);
  border-radius: 8px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .page-link:hover { color: var(--color-primary); }

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-content { margin-left: 0; padding: 20px; }
  .product-detail .product-info { padding-left: 0; margin-top: 20px; }
}
