* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #e7eefb;
  min-height: 100vh;
  color: #1f3254;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(31, 62, 143, 0.12);
  box-shadow: 0 10px 30px rgba(31, 62, 143, 0.08);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.navbar div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar div:first-child {
  flex: 1;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #1f3254;
  font-weight: 600;
  font-size: 0.95em;
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar a:hover {
  background: rgba(51, 84, 183, 0.12);
  color: #2b4dab;
  transform: translateY(-1px);
}

.navbar a::before {
  content: none;
}


.navbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
}
.navbar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.navbar .brand-text span {
  font-size: 1.05em;
  font-weight: 800;
  color: #1f3254;
}
.navbar .brand-text small {
  font-size: 0.78em;
  color: #5d6c8f;
  letter-spacing: 0.3px;
}
.navbar button img {
  width: 20px;
  height: 20px;
}
.navbar button {
  padding: 10px 18px;
  border: 2px solid #2b4dab;
  background: #ffffff;
  color: #2b4dab;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1em;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(31, 62, 143, 0.08);
}

.navbar .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #d9e1f4;
  background: #ffffff;
  color: #2b4dab;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(31, 62, 143, 0.06);
}

.icon-button img {
  width: 20px;
  height: 20px;
}

.sidebar-buttons button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid #d9e1f4;
  background: #ffffff;
}

.navbar button:hover,
.icon-button:hover,
.sidebar-buttons button:hover {
  background: #2b4dab;
  color: white;
  transform: translateY(-1px);
}

.navbar button:active {
  transform: scale(0.98);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(31, 62, 143, 0.12);
  box-shadow: 0 10px 30px rgba(31, 62, 143, 0.08);
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar.open {
  left: 0;
}

.sidebar-toggle {
  background: #2b4dab;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(31, 62, 143, 0.15);
  transition: background 0.3s, transform 0.2s;
}

.sidebar-toggle:hover {
  background: #1f3254;
  transform: translateY(-1px);
}

.sidebar-buttons {
  display: none;
}

.main-content {
  transition: margin-left 0.3s ease;
  position: relative;
}

.main-content.shifted {
  margin-left: 260px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav a {
  text-decoration: none;
  color: #1f3254;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.3s;
}

.sidebar-nav a:hover {
  background: rgba(51, 84, 183, 0.12);
}

.sidebar-buttons {
  display: flex;
  gap: 10px;
}

/* Container */
.container {
  padding: 42px 32px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 100px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(31, 62, 143, 0.08);
}

/* Search and Filter Section */
.search-filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  align-items: center;
}

.search-bar {
  flex: 1;
  min-width: 200px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: #2b4dab;
  box-shadow: 0 0 0 4px rgba(43, 77, 171, 0.12);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #2b4dab;
  color: #2b4dab;
}

.filter-btn.active {
  background: #2b4dab;
  border-color: #2b4dab;
  color: white;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.featured-grid {
  margin-top: 18px;
}

.product {
  background: #ffffff;
  padding: 22px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 18px 35px rgba(31, 62, 143, 0.08);
  transition: all 0.28s ease;
  border: 1px solid rgba(31, 62, 143, 0.08);
}

.featured-section,
.category-section {
  margin-top: 50px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.75em;
  color: #1f3254;
}

.see-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #2b4dab;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease;
}

.see-all-btn:hover {
  background: #1f3254;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.category-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 28px;
  box-shadow: 0 18px 35px rgba(31, 62, 143, 0.08);
  border: 1px solid rgba(31, 62, 143, 0.08);
  display: grid;
  gap: 14px;
  min-height: 320px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.25em;
  color: #1f3254;
}

.category-card p {
  margin: 0;
  color: #5d6c8f;
  line-height: 1.6;
}

.category-card a {
  color: #2b4dab;
  text-decoration: none;
  font-weight: 700;
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 22px;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(31, 62, 143, 0.12);
  border-color: rgba(43, 77, 171, 0.18);
}

.product .product-image {
  width: 100%;
  height: 165px;
  background: #f3f6ff;
  border-radius: 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.product h3 {
  margin: 12px 0 6px;
  font-size: 1.05em;
  line-height: 1.3;
  color: #1f3254;
}

.product p {
  color: #2b4dab;
  font-weight: 700;
  margin: 10px 0 18px;
}

/* Buttons */
button {
  padding: 12px 24px;
  border: none;
  background: linear-gradient(135deg, #3d6bdf 0%, #2548b5 100%);
  color: white;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.95em;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(43, 77, 171, 0.18);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(43, 77, 171, 0.22);
}

button:active {
  transform: scale(0.98);
}

/* Cart */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-item span {
  flex: 1;
}

.cart-item div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
}

.product button {
  width: 100%;
  margin-top: 12px;
}

.cart-item button {
  padding: 6px 12px;
  font-size: 0.85em;
  margin: 0 5px;
}

/* Loading */
#loading {
  text-align: center;
  padding: 40px 20px;
}

.loader {
  border: 5px solid #eee;
  border-top: 5px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
}

.order-card {
  background: #ffffff;
  border: 1px solid rgba(31, 62, 143, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(31, 62, 143, 0.08);
  padding: 26px;
  margin-bottom: 24px;
}

.order-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.order-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1f3254;
}

.order-meta {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.order-total {
  color: #2b4dab;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.order-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #4b5563;
  margin-bottom: 18px;
}

.order-details p {
  margin: 0;
  font-size: 0.95rem;
}

.order-items {
  display: grid;
  gap: 16px;
}

.order-item-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(43, 77, 171, 0.12);
}

.order-item-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  background: #ffffff;
}

.order-item-card .item-details {
  flex: 1;
  min-width: 0;
}

.order-item-card .item-details h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1f3254;
}

.order-item-card .item-details p {
  margin: 4px 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.order-item-card .item-price {
  font-weight: 700;
  color: #1f3254;
  min-width: 100px;
  text-align: right;
}

@media (max-width: 760px) {
  .order-card-header,
  .order-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item-card {
    flex-direction: column;
    align-items: stretch;
  }

  .order-item-card .item-price {
    text-align: left;
  }
}





@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Forms */
form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 20px auto;
}

form input,
form select {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #2b4dab;
  box-shadow: 0 0 8px rgba(43, 77, 171, 0.2);
}

form button {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05em;
}

.site-footer {
  background: #1f3254;
  color: #f3f6ff;
  padding: 40px 20px;
  margin-top: 60px;
}

.site-footer .footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .footer-block {
  min-width: 220px;
  flex: 1;
}

.site-footer h4 {
  margin-bottom: 14px;
  font-size: 1.1em;
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  color: rgba(243, 246, 255, 0.82);
  line-height: 1.8;
  text-decoration: none;
  font-size: 0.95em;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-bottom {
  margin-top: 32px;
  text-align: center;
  color: rgba(243, 246, 255, 0.7);
  font-size: 0.92em;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 10px;
  }

  .navbar div:first-child {
    font-size: 1.1em;
  }

  .navbar div {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .navbar a {
    font-size: 0.9em;
    padding: 6px 10px;
  }

  .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .container {
    padding: 20px 15px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item div {
    margin-left: 0;
    margin-top: 10px;
  }

  form {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}