:root {
  --secondary-accent: #00d2ff;
}

body {
  background-color: var(--bg-body);
  color: var(--txt-main);
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  text-align: center;
}

p {
  font-size: 14px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fonti {
  font-family: 'FoglihtenNo06';
}

.divider {
  border-top: 3px dotted var(--txt-main);
  opacity: 0.3;
  margin: 40px 0;
}

.navbar {
  background-color: var(--bg-body);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'FoglihtenNo06';
  font-size: 24px;
  letter-spacing: 1px;
  margin-right: 20px;
}

.logo-text {
  color: var(--txt-main);
}

.navbar .navbar-nav {
  align-items: center;
}

.navbar .nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--txt-main) !important;
  font-size: 14px;
  margin: 0 5px;
}

.cart-btn, .login-btn {
  border: 1px solid var(--txt-main);
  border-radius: 20px;
  padding: 3px 12px !important;
  margin: 0 5px !important;
  font-size: 0.9rem;
}

.search-box {
  display: flex;
  flex-grow: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
  border-radius: 25px;
  background-color: var(--bg-card);
  transition: all 0.3s ease;
  font-family: system-ui, -apple-system, sans-serif;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 25px;
  border: 1px solid var(--border-light);
  background-color: transparent;
  color: var(--txt-main);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--txt-main);
  cursor: pointer;
  font-size: 1rem;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--txt-main);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.theme-toggle:hover {
  transform: rotate(30deg);
}

.dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
}

.dropdown-item {
  color: var(--txt-main) !important;
}

.dropdown-item:hover {
  background-color: var(--app-primary-alpha);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-body);
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  z-index: 1000;
}

.bottom-nav a {
  color: var(--txt-main);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.bottom-nav a i {
  font-size: 1.2rem;
}

.bottom-nav a:hover {
  color: var(--app-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--app-primary);
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-light);
  color: var(--txt-main);
}

.btn-outline:hover {
  background-color: var(--app-primary-alpha);
  border-color: var(--app-primary);
  color: var(--app-primary);
  transform: translateY(-2px);
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--txt-main);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.btn-save {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  min-width: 180px;
}

.btn-save:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-save.loading {
  position: relative;
  color: transparent;
}

.btn-save.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-cancel {
  border: 2px solid var(--border-light);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  background: transparent;
  color: var(--txt-main);
  min-width: 180px;
}

.btn-cancel:hover {
  background: var(--app-primary-alpha);
  border-color: var(--app-primary);
  color: var(--app-primary);
  transform: translateY(-3px);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--txt-main);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  color: var(--app-primary);
  transform: scale(1.1);
}

.wishlist-btn.active {
  color: #ff4757;
}

.buy-now-btn, .add-to-cart-btn {
  background-color: var(--app-primary);
  color: white;
  border-radius: 25px;
  padding: 8px 25px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.buy-now-btn:hover, .add-to-cart-btn:hover {
  background-color: var(--secondary-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--txt-main);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-body);
  color: var(--txt-main);
  font-family: system-ui, -apple-system, sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: var(--txt-muted);
}

.form-control:read-only {
  background: var(--bg-body);
  opacity: 0.7;
  cursor: not-allowed;
}

.form-control.success {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.form-control.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.form-help {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--txt-sub);
  opacity: 0.7;
}

.form-error {
  color: #ff4757;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-control {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--txt-sub);
  opacity: 0.7;
}

.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
  height: 100%;
}

.carousel-item {
  position: relative;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.slider-content {
  max-width: 600px;
  padding: 30px;
  background-color: var(--glass-bg);
  border-radius: 15px;
  margin-left: 10%;
  backdrop-filter: blur(5px);
}

.slider-content h1 {
  font-size: 2.5rem;
  color: var(--txt-main);
}

.slider-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--txt-main);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 3;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0,0,0,0.5);
}

.product-card {
  background-color: var(--bg-card);
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  box-shadow: var(--shadow-app);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 10px;
}

.product-card h5 {
  font-size: 1.1rem;
  margin: 10px 0;
  color: var(--txt-main);
  font-weight: 600;
  flex-grow: 1;
}

.price {
  font-weight: bold;
  font-size: 18px;
  color: var(--app-primary);
  margin-bottom: 15px;
}

.old-price {
  text-decoration: line-through;
  color: var(--txt-muted);
  margin-left: 8px;
  font-size: 14px;
}

.product-actions {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 15px;
}

.quantity-control {
  display: flex;
  align-items: center;
  background-color: var(--app-primary-alpha);
  border-radius: 20px;
  padding: 2px 8px;
  gap: 5px;
}

.quantity-btn {
  background: transparent;
  border: none;
  color: var(--txt-main);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity {
  margin: 0 5px;
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.info-section, .products-section, .about-section,
.guarantee-section, .delivery-section, .login-section,
.cart-section, .catalog-page-section, .product-detail-section {
  padding: 50px 0;
}

.product-detail-section {
  background-color: var(--bg-body);
}

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

.gallery-item {
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn, .tabs .btn {
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--txt-main);
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active, .tabs .btn.active {
  background-color: var(--app-primary);
  color: white;
  border-color: var(--app-primary);
}

.tab-content .tab-pane, .tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active, .tab-content .tab-pane.active {
  display: block;
}

.mesga {
  height: 150px;
  border: 3px solid var(--bg-body);
  outline: 3px solid var(--border-light);
  font-family: 'FoglihtenNo06';
  font-weight: 500;
  font-size: 2rem;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}

.mesga span {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.mesga .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  transition: background-color 0.3s ease;
}

.mesga:hover {
  transform: scale(1.02);
}

.mesga:hover .overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.delivery-card {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background-color: var(--bg-card);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.delivery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.delivery-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--app-primary);
}

.delivery-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.review, .review-card {
  background-color: var(--bg-card);
  padding: 15px;
  border-radius: 15px;
  margin-top: 15px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-app);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card h5 {
  color: var(--app-primary);
  font-weight: bold;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 20px;
}

.category-item-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--bg-card);
  color: var(--txt-main);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-light);
}

.category-item-toggle:hover {
  background-color: var(--app-primary-alpha);
}

.category-item-toggle i {
  transition: transform 0.3s ease;
}

.category-item-toggle.expanded i {
  transform: rotate(45deg);
}

.subcategory-list {
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--bg-body);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.subcategory-list.show {
  max-height: 200px;
  transition: max-height 0.5s ease-in;
}

.subcategory-list li {
  padding: 8px 0;
  font-size: 0.95rem;
}

.pagination {
  justify-content: center;
  margin-top: 30px;
}

.pagination .page-link {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--txt-main);
  margin: 0 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

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

.auth-section, .login-section {
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card, .login-form.card, .register-form.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-float);
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 15px;
  color: var(--txt-main);
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.auth-card h2, .login-form h3, .register-form h3 {
  color: var(--app-primary);
  font-family: 'FoglihtenNo06';
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  font-weight: 600;
}

.password-strength {
  margin-top: 10px;
  margin-bottom: 20px;
}

.strength-bar {
  height: 4px;
  background-color: #6c757d;
  border-radius: 2px;
  margin-bottom: 5px;
  width: 100%;
}

.strength-bar.weak {
  background-color: #dc3545;
  width: 30%;
}

.strength-text {
  font-size: 12px;
  color: var(--txt-sub);
  opacity: 0.7;
}

.account-dashboard {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

.account-header {
  margin-bottom: 40px;
  text-align: center;
}

.account-header h1 {
  font-size: 42px;
  color: var(--app-primary);
}

.account-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--app-primary-alpha) 100%);
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.avatar img, .avatar i, .avatar-large img, .avatar-large i {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 80px;
  color: var(--app-primary);
}

.account-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.account-sidebar {
  flex: 0 0 300px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid var(--border-light);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.account-content {
  flex: 1;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px;
  border: 1px solid var(--border-light);
}

.account-menu li {
  margin-bottom: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.account-menu li.active {
  background: linear-gradient(135deg, var(--app-primary-alpha) 0%, rgba(0, 210, 255, 0.1) 100%);
}

.account-menu li:not(.logout):hover {
  background: var(--app-primary-alpha);
  transform: translateX(5px);
}

.account-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--txt-main);
  font-weight: 500;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.account-menu li.active a, .account-menu li a:hover {
  color: var(--app-primary);
}

.account-menu .badge {
  background: var(--app-primary);
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  margin-left: auto;
}

.account-tab {
  display: none;
  animation: fadeIn 0.5s ease;
}

.account-tab.active {
  display: block;
}

.tab-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.tab-header h2 {
  font-size: 32px;
  color: var(--app-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--app-primary-alpha) 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.stat-value, .stat-number {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: var(--txt-main);
}

.profile-edit-form {
  max-width: 100%;
}

.form-section {
  margin-bottom: 35px;
  padding: 25px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.form-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.form-section h3 {
  font-size: 20px;
  color: var(--app-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.file-upload-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.avatar-preview, .avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--app-primary);
}

.avatar-placeholder {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid var(--border-light);
}

.order-card {
  background-color: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.order-header, .order-card-header, .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.status-pending, .order-status.processing { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.status-confirmed, .order-status.completed { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.status-processing { background: rgba(0, 123, 255, 0.2); color: #007bff; }
.status-cancelled { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.product-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.product-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.wishlist-grid, .addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.wishlist-item, .address-card {
  background-color: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.wishlist-item:hover, .address-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--txt-main);
  opacity: 0.7;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  color: #ff4757 !important;
  opacity: 1;
}

.cart-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  padding: 15px;
}

.cart-summary {
  background-color: var(--bg-card);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.total-row {
  font-size: 1.3rem;
  font-weight: bold;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
  margin-top: 15px;
}

.checkout-progress {
  display: flex;
  justify-content: space-between;
  margin: 30px auto;
  max-width: 800px;
}

.checkout-progress .step {
  text-align: center;
  flex: 1;
  opacity: 0.5;
}

.checkout-progress .step.active {
  opacity: 1;
  font-weight: bold;
}

.checkout-progress .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--txt-main);
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
}

.checkout-progress .step.active span {
  background-color: var(--app-primary);
  color: white;
  border-color: var(--app-primary);
}

.alerts-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
}

/* Сообщения (messages) и всплывающие уведомления.

   Цвета собираются из переменных, а не задаются раз и навсегда: раньше у
   `.alert` был жёстко прописан `color: white`, а фон приходил из модификатора.
   Стоило Django прислать тег `error` — класс становился `alert-error`, ни
   одно правило с фоном не срабатывало, и белый текст оказывался на белой
   карточке. Теперь у базового класса есть собственный фон и цвет текста, так
   что даже неизвестный модификатор остаётся читаемым, а каждый вид
   поддерживает светлую и тёмную темы. */
.alert, .alert-django {
  --alert-bg: var(--bg-card, #ffffff);
  --alert-fg: var(--txt-main, #0f172a);
  --alert-accent: var(--txt-muted, #94a3b8);

  position: relative;
  padding: 14px 44px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--alert-accent) 35%, transparent);
  border-left: 4px solid var(--alert-accent);
  border-radius: 10px;
  animation: slideIn 0.3s forwards;
  background-color: var(--alert-bg);
  color: var(--alert-fg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  margin-bottom: 10px;
  font-size: 0.925rem;
  line-height: 1.45;
}

/* Светлая тема: мягкая подложка, тёмный текст — контраст выше 7:1. */
.alert.success, .alert-success { --alert-bg: #ecfdf5; --alert-fg: #065f46; --alert-accent: #10b981; }
.alert.error, .alert-error,
.alert-danger                  { --alert-bg: #fef2f2; --alert-fg: #991b1b; --alert-accent: #ef4444; }
.alert.info, .alert-info       { --alert-bg: #eff6ff; --alert-fg: #1e40af; --alert-accent: #3b82f6; }
.alert.warning, .alert-warning { --alert-bg: #fffbeb; --alert-fg: #92400e; --alert-accent: #f59e0b; }
.alert-secondary, .alert-debug { --alert-bg: #f1f5f9; --alert-fg: #334155; --alert-accent: #94a3b8; }

/* Тёмная тема: тот же смысл цвета, но подложка тёмная, а текст светлый.
   Полупрозрачный фон поверх карточки сохраняет глубину интерфейса. */
body.dark-theme .alert.success, body.dark-theme .alert-success { --alert-bg: rgba(16, 185, 129, 0.14); --alert-fg: #6ee7b7; --alert-accent: #10b981; }
body.dark-theme .alert.error, body.dark-theme .alert-error,
body.dark-theme .alert-danger                                  { --alert-bg: rgba(239, 68, 68, 0.16); --alert-fg: #fca5a5; --alert-accent: #ef4444; }
body.dark-theme .alert.info, body.dark-theme .alert-info       { --alert-bg: rgba(59, 130, 246, 0.16); --alert-fg: #93c5fd; --alert-accent: #3b82f6; }
body.dark-theme .alert.warning, body.dark-theme .alert-warning { --alert-bg: rgba(245, 158, 11, 0.16); --alert-fg: #fcd34d; --alert-accent: #f59e0b; }
body.dark-theme .alert-secondary, body.dark-theme .alert-debug { --alert-bg: rgba(148, 163, 184, 0.16); --alert-fg: #cbd5e1; --alert-accent: #94a3b8; }

/* Ссылки внутри сообщения наследуют его цвет, иначе синяя ссылка на красном
   фоне в тёмной теме нечитаема. */
.alert a, .alert-django a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Кнопка закрытия сообщения.

   У Bootstrap крестик нарисован фоновой картинкой чёрного цвета. Правило ниже
   перебивало фон на прозрачный — картинка пропадала, а своего текста у кнопки
   нет, и закрывать сообщение приходилось наугад. К тому же чёрный крестик всё
   равно не виден в тёмной теме. Рисуем символ псевдоэлементом: он наследует
   цвет сообщения и потому читается в обеих темах. */
.alert .close-btn, .alert .btn-close,
.alert-django .close-btn, .alert-django .btn-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  background-image: none;
  border: none;
  border-radius: 8px;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}

.alert .close-btn::before, .alert .btn-close::before,
.alert-django .close-btn::before, .alert-django .btn-close::before {
  content: '\00d7';
  font-size: 1.35rem;
  line-height: 1;
}

.alert .close-btn:hover, .alert .btn-close:hover,
.alert-django .close-btn:hover, .alert-django .btn-close:hover {
  opacity: 1;
  background-color: color-mix(in srgb, currentColor 14%, transparent);
}

.alert .btn-close:focus-visible, .alert-django .btn-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bar-grow {
  from { height: 0%; }
  to { height: attr(percentage); }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  animation: modalFadeIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-body {
  padding: 20px;
}

.footer {
  background-color: var(--bg-card);
  color: var(--txt-main);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer h5 {
  color: var(--app-primary);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer a, .footer li {
  color: var(--txt-sub);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
}

.footer .newsletter-form {
  display: flex;
  margin-top: 20px;
  justify-content: center;
}

.footer .newsletter-form input {
  padding: 10px 15px;
  border-radius: 5px 0 0 5px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-body);
  color: var(--txt-main);
  outline: none;
}

.footer .newsletter-form button {
  padding: 10px 20px;
  background-color: var(--app-primary);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
}

.security-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.security-status-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--app-primary-alpha) 100%);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.security-status-card.secure {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.08) 100%);
}

.security-status-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.status-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.security-status-card.secure .status-icon {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.status-info h3 {
  font-size: 16px;
  color: var(--txt-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.status-value {
  font-size: 22px;
  font-weight: bold;
  color: var(--app-primary);
  margin: 5px 0;
}

.status-detail {
  font-size: 13px;
  color: var(--txt-muted);
  margin: 0;
}

.security-level {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.level-progress {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.level-text {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.security-section {
  margin-bottom: 35px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.security-section.danger-zone {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  font-size: 24px;
  color: var(--app-primary);
}

.section-title h3 {
  font-size: 22px;
  color: var(--txt-main);
  margin: 0;
}

.status-badge {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.security-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-item-card {
  background: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.security-item-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-float);
}

.security-item-card.highlight {
  border-color: var(--app-primary);
  background: linear-gradient(135deg, var(--app-primary-alpha) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.security-item-card.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.item-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.item-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.item-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.item-icon.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.item-details h4 {
  font-size: 17px;
  color: var(--txt-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.item-details p {
  font-size: 14px;
  color: var(--txt-sub);
  margin: 0;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.strength-indicator {
  display: flex;
  gap: 5px;
}

.strength-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}

.strength-indicator.strong .strength-dot {
  background: #22c55e;
}

.strength-indicator.medium .strength-dot:nth-child(-n+3) {
  background: #f59e0b;
}

.strength-indicator.weak .strength-dot:nth-child(-n+2) {
  background: #ef4444;
}

.strength-label {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.security-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--app-primary-alpha);
  color: var(--app-primary);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.session-card {
  background: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.session-card.current {
  border-color: var(--app-primary);
  background: linear-gradient(135deg, var(--app-primary-alpha) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.session-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.session-details h4 {
  font-size: 16px;
  color: var(--txt-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.session-location,
.session-time,
.session-ip {
  font-size: 13px;
  color: var(--txt-muted);
  margin: 4px 0;
}

.current-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.section-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.login-history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-history-item {
  background: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--app-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.login-history-item.success {
  border-left-color: #22c55e;
}

.login-history-item.failed {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.login-history-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-float);
}

.history-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.login-history-item.success .history-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.login-history-item.failed .history-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.history-content {
  flex: 1;
}

.history-content h4 {
  font-size: 16px;
  color: var(--txt-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.history-device,
.history-location {
  font-size: 13px;
  color: var(--txt-muted);
  margin: 4px 0;
}

.warning-text {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.history-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 13px;
  color: var(--txt-muted);
}

.history-time .time {
  font-weight: 600;
  color: var(--app-primary);
}

.security-toggle-item {
  background: var(--app-primary-alpha);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.security-toggle-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-float);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-light);
  border-radius: 26px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--secondary-accent) 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.danger-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.security-tips {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--app-primary-alpha) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.security-tips h3 {
  font-size: 22px;
  color: var(--app-primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.tip-card i {
  font-size: 32px;
  color: var(--app-primary);
  margin-bottom: 15px;
}

.tip-card h4 {
  font-size: 16px;
  color: var(--txt-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.tip-card p {
  font-size: 13px;
  color: var(--txt-sub);
  margin: 0;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-danger-outline {
  background: transparent;
  color: #ef4444;
  border: 2px solid #ef4444;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger-outline:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .account-container {
    flex-direction: column;
  }
  .account-sidebar {
    flex: 0 0 auto;
    margin-bottom: 30px;
    position: static;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--bg-body);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
  }
  .navbar-collapse .cart-btn, .navbar-collapse .login-btn {
    display: none;
  }
  .search-box {
    max-width: 300px;
  }
  .nav-link-lg {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    margin-right: 10px;
  }
  .search-box {
    max-width: 100%;
    margin: 10px 0;
  }
  .bottom-nav {
    display: flex;
  }
  .desktop-nav-items {
    display: none !important;
  }
  .hero-slider {
    height: 60vh;
  }
  .slider-content h1 {
    font-size: 1.8rem;
  }
  .account-header h1 {
    font-size: 32px;
  }
  .account-welcome {
    flex-direction: column;
    text-align: center;
  }
  .stats-grid, .detail-grid, .form-grid, .checkout-progress, .security-overview-grid, .tips-grid {
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }
  .security-item-card, .session-card, .login-history-item, .security-toggle-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .session-info, .item-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .history-time {
    align-items: flex-start;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .checkout-progress .step {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }
  .file-upload-wrapper, .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-save, .btn-cancel {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 20px;
  }
  .search-box {
    width: 150px;
    flex-grow: 0;
  }
  .hero-slider {
    height: 50vh;
  }
  .mesga {
    font-size: 1.5rem;
    height: 120px;
  }
  .account-content, .form-section, .security-section {
    padding: 20px;
  }
  .checkout-progress .step {
    flex: 0 0 100%;
  }
  .quantity-control {
    padding: 2px 5px;
  }
  .security-tips {
    padding: 20px;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
}
