/* OutMart — same style as legacy (desktop) */
@charset "UTF-8";

body.desktop-mode {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background: linear-gradient(180deg, #fff9e6, #fff6da);
  color: #1a1a1a;
  direction: rtl;
}

body.desktop-mode header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #fffaf0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  direction: rtl;
}

body.desktop-mode .left-section .site-name {
  font-weight: 700;
  font-size: 24px;
  color: #222;
}
body.desktop-mode .left-section .site-name .out { color: #004aad; }
body.desktop-mode .left-section .site-name .mart { color: #ff7b00; }

body.desktop-mode .right-section .login-btn {
  background: linear-gradient(90deg, #0077ff, #00bfff);
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
body.desktop-mode .right-section .login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #fff;
}

body.desktop-mode .right-section .header-btn {
  background: #fff;
  color: #004aad;
  border: 1px solid #c9dfff;
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  font-family: inherit;
  cursor: pointer;
}
body.desktop-mode .right-section button.header-btn {
  margin-left: 8px;
  margin-right: 0;
}
body.desktop-mode .right-section .header-btn:hover {
  background: #004aad;
  color: #fff;
  border-color: #004aad;
}

body.desktop-mode .live-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-right: 6px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}

body.desktop-mode .store-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #f6f9ff, #eef4ff);
  padding: 15px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.desktop-mode .store-bar a,
body.desktop-mode .store-bar button {
  background: #fff;
  color: #0077ff;
  border: 1px solid #c9dfff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-decoration: none;
  font-family: inherit;
}
body.desktop-mode .store-bar a:hover,
body.desktop-mode .store-bar button:hover {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
  transform: translateY(-2px);
}
body.desktop-mode .store-bar a.active {
  background: #004aad;
  color: #fff;
  border-color: #004aad;
}

body.desktop-mode .welcome-bar {
  background-color: #f0e2b8;
  padding: 10px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.desktop-mode .welcome-text {
  display: inline-block;
  white-space: nowrap;
  color: #3d2e00;
  font-weight: 600;
  font-size: 18px;
  animation: moveText 18s linear infinite;
}

@keyframes moveText {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ========== Slider — same as legacy ========== */
body.desktop-mode .custom-slider {
  width: 100%;
  max-width: 1140px;
  height: 400px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #fff7dd;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body.desktop-mode .custom-slider img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
body.desktop-mode .custom-slider img.active {
  opacity: 1;
}

/* ========== Features section — same as legacy ========== */
body.desktop-mode .features-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 25px;
  padding: 60px 20px;
  background: #fff8e1;
}

body.desktop-mode .feature {
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 250px;
  height: 250px;
  background: #fff3cc;
  border: 2px solid #e2c56a;
  border-radius: 14px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}
body.desktop-mode .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: #d8b640;
  background: #ffefb3;
}

body.desktop-mode .feature h3 {
  color: #003d77;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

body.desktop-mode .feature p {
  color: #2c2c2c;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ========== Buy combined / دليل الشراء — same as legacy ========== */
.buy-combined {
  width: clamp(320px, 92vw, 1100px);
  margin: 50px auto;
  background: linear-gradient(to bottom, #fffdf8, #fffaf0);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 50px 30px;
  text-align: center;
}

.buy-combined h2 {
  color: #003366;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 35px;
  position: relative;
  display: inline-block;
}

.buy-combined h2::after {
  content: "";
  width: 90px;
  height: 3px;
  background: #ff9900;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.combined-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.combined-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 22px 18px;
  transition: 0.25s ease;
  color: #222;
}

.combined-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.combined-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004aad, #00b8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 26px;
  color: #fff;
}

.combined-card h3 {
  color: #004aad;
  font-size: 18px;
  margin: 6px 0 8px;
  font-weight: 800;
}

.combined-card p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: #333;
}

.combined-highlight {
  border: 1px solid rgba(255,153,0,0.35);
  background: linear-gradient(180deg, #fff 0%, #fff8ec 100%);
}

/* ========== الملف الشخصي (Profile) — from old-code-pure auth/profile ========== */
.profile-page-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 25px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  font-family: "Tajawal", sans-serif;
}
.profile-page-title {
  text-align: center;
  color: #004aad;
  margin-bottom: 20px;
  font-size: 21px;
}
.profile-success-msg {
  text-align: center;
  color: #059669;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 10px;
  background: #d1fae5;
  border-radius: 10px;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 26px;
  row-gap: 18px;
}
.profile-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 13px;
  color: #333;
}
.profile-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.3s;
  box-sizing: border-box;
}
.profile-form input:focus {
  border-color: #004aad;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 74, 173, 0.25);
}
.profile-form input[readonly] {
  background: #f6f6f6;
  cursor: not-allowed;
  color: #666;
}
.profile-field-error {
  display: block;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}
.profile-btn-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.profile-save-btn {
  flex: 1;
  background: linear-gradient(90deg, #004aad, #ff9800);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}
.profile-save-btn:hover {
  background: linear-gradient(90deg, #003a99, #ff7b00);
  color: #fff;
}
.profile-close-btn {
  flex: 1;
  background: #e2e2e2;
  color: #333;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  font-family: inherit;
}
.profile-close-btn:hover {
  background: #ccc;
  color: #333;
}
@media (max-width: 480px) {
  .register-name-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-page-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .profile-form-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 14px;
  }
  .profile-form input {
    font-size: 13px;
    padding: 8px;
  }
  .profile-btn-group {
    flex-direction: column;
    gap: 10px;
  }
  .profile-save-btn,
  .profile-close-btn {
    padding: 9px;
    font-size: 13px;
  }
}

/* ========== Footer — same as legacy ========== */
.footer-modern {
  background: #fff7df;
  padding: 50px 8%;
  font-family: "Tajawal", sans-serif;
  direction: rtl;
  color: #333;
}

.footer-modern .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.footer-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 25px;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: right;
}
.footer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.footer-card h4 {
  color: #004aad;
  border-bottom: 2px solid #ff7b00;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 18px;
}

.footer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-card ul li {
  margin: 6px 0;
}
.footer-card a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-card a:hover {
  color: #004aad;
}

/* Outmart footer — payment icons, copy, social (same as legacy) */
footer.outmart-footer {
  background: linear-gradient(180deg, #fff9e8 0%, #fff6dc 100%);
  border-top: 2px solid rgba(0,0,0,0.05);
  padding: 25px 60px;
  font-family: "Tajawal", sans-serif;
  color: #222;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.05);
  border-radius: 16px 16px 0 0;
}

footer.outmart-footer .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer.outmart-footer .footer-payments {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

footer.outmart-footer .footer-payments img {
  width: 48px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.08));
}
footer.outmart-footer .footer-payments img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

footer.outmart-footer .footer-copy {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

footer.outmart-footer .footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

footer.outmart-footer .footer-social a {
  color: #5a4400;
  font-size: 22px;
  transition: all 0.3s ease;
}
footer.outmart-footer .footer-social a:hover {
  color: #ff7b00;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  footer.outmart-footer {
    padding: 25px 20px;
  }
  footer.outmart-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  footer.outmart-footer .footer-payments img {
    width: 45px;
  }
  footer.outmart-footer .footer-social a {
    font-size: 20px;
  }
}

/* Main content area */
body.desktop-mode #home-sections,
body.desktop-mode main {
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

/* Mercari page — match legacy mercari/style.css */
.mercari-page {
  --mercari-red: #ff3b3b;
  --mercari-blue: #00aaff;
  --mercari-bg: #f9fafc;
  --mercari-card: #ffffff;
  --mercari-border: #e5e9f2;
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--mercari-bg);
  color: #1f2d3d;
}

.mercari-page .mercari-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px;
  background: linear-gradient(180deg, #fff6f6, #f2f8ff);
  border: 1px solid var(--mercari-border);
  border-radius: 14px;
}
.mercari-page .mercari-header .mercari-search { order: 2; }
.mercari-page .mercari-header .mercari-header__brand { order: 1; }
.mercari-page[dir="rtl"] .mercari-header .mercari-search { margin-right: auto; margin-left: 0; }
.mercari-page:not([dir="rtl"]) .mercari-header .mercari-search { margin-left: auto; margin-right: 0; }

.mercari-page .mercari-title { margin: 0; font-weight: 800; color: var(--mercari-red); }
.mercari-page .mercari-tagline { margin: 0; font-weight: 600; color: #333; font-size: 14px; }
.mercari-page .mercari-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--mercari-border);
  border-radius: 12px;
  padding: 8px 10px;
  flex: 0 1 min(100%, 400px);
}
.mercari-page .mercari-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
}
.mercari-page .mercari-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mercari-red), var(--mercari-blue));
  color: #fff;
  font-weight: 700;
  font-family: inherit;
}

.mercari-page .mercari-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.mercari-page .mercari-tab {
  background: #fff;
  border: 1px solid var(--mercari-border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}
.mercari-page .mercari-tab.is-active {
  background: var(--mercari-red);
  color: #fff;
  border-color: var(--mercari-red);
}

.mercari-page .mercari-content {
  background: #fff;
  border: 1px solid var(--mercari-border);
  border-radius: 14px;
  padding: 14px;
  min-height: 220px;
}

.mercari-page .mercari-loading {
  text-align: center;
  padding: 32px;
  color: #666;
}
.mercari-page .mercari-error {
  padding: 20px;
  color: #c53030;
}
.mercari-page .mercari-error a {
  color: #004aad;
}

.mercari-page .mercari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mercari-page .mercari-card {
  display: block;
  background: var(--mercari-card);
  border: 1px solid var(--mercari-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
  color: #222;
}
.mercari-page .mercari-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: #222;
}
.mercari-page .mercari-card__media {
  position: relative;
  height: 160px;
  background: #f2f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mercari-page .mercari-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mercari-page .mercari-card--product .mercari-card__media {
  height: 180px;
}
.mercari-page .mercari-card__placeholder,
.mercari-page .mercari-card__noimg {
  padding: 20px;
  color: #666;
  font-size: 14px;
}
.mercari-page .mercari-card__sold {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.mercari-page .mercari-card__body {
  padding: 12px;
}
.mercari-page .mercari-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.mercari-page .mercari-card__meta {
  font-size: 13px;
  color: #777;
}
.mercari-page .mercari-card__price {
  color: var(--mercari-red);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
}
.mercari-page .mercari-card__action {
  display: inline-block;
  padding: 6px 12px;
  background: #004aad;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
}
.mercari-page .mercari-products__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--mercari-red);
}
.mercari-page .mercari-empty {
  padding: 24px;
  text-align: center;
  color: #666;
}
.mercari-page .mercari-categories {
  padding: 0;
}
.mercari-page .mercari-categories__section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: #333;
}
.mercari-page .mercari-grid--featured {
  margin-bottom: 1.25rem;
}

/* زر رجوع للقائمة / العودة للرئيسية (نفس ستايل رجوع للقائمة) */
body.desktop-mode .back-btn {
  background: #f9fafc;
  color: #333;
  border: 1px solid #d0d4d9;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  margin-left: 10px;
  font-family: inherit;
  font-weight: 600;
}
body.desktop-mode .back-btn:hover {
  background: #004aad;
  color: #fff;
  border-color: #004aad;
}

/* Header: حسابي uses same .header-btn style */
body.desktop-mode .header-btn--icon {
  padding: 10px 14px;
}
body.desktop-mode .right-section .header-btn {
  margin-left: 8px;
  margin-right: 0;
}

/* Floating account menu overlay */
body.desktop-mode .account-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}
body.desktop-mode .account-menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
}
body.desktop-mode .account-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
body.desktop-mode .account-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fffbf5, #fdf8f0);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
body.desktop-mode .account-menu-overlay.is-open .account-menu-panel {
  transform: translateX(0);
}
body.desktop-mode .account-menu-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
body.desktop-mode .account-menu-close:hover {
  background: rgba(0,0,0,0.1);
}

/* User side menu (inside floating panel) */
body.desktop-mode .account-menu-panel .user-side-menu {
  width: 100%;
  padding: 56px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
body.desktop-mode .user-side-menu__brand { margin-bottom: 16px; }
body.desktop-mode .user-side-menu__logo {
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: #222;
}
body.desktop-mode .user-side-menu__logo .out { color: #004aad; }
body.desktop-mode .user-side-menu__logo .mart { color: #ff7b00; }
body.desktop-mode .user-side-menu__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8ecf4, #d0d8e8);
  color: #5a6c8a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
body.desktop-mode .user-side-menu__welcome {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #3d2e00;
}
body.desktop-mode .user-side-menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
body.desktop-mode .user-side-menu__auth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
body.desktop-mode .user-side-menu__social {
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.desktop-mode .user-side-menu__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}
body.desktop-mode .user-side-menu__social-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  color: #fff;
}
body.desktop-mode .user-side-menu__social-btn--google {
  background: #4285f4;
}
body.desktop-mode .user-side-menu__social-btn--facebook {
  background: #1877f2;
}
/* Unify panel buttons with header style (white + border) */
body.desktop-mode .user-side-menu__btn {
  display: inline-block;
  background: #fff;
  color: #004aad;
  border: 1px solid #c9dfff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.desktop-mode .user-side-menu__btn:hover {
  background: #004aad;
  color: #fff;
  border-color: #004aad;
}
body.desktop-mode .user-side-menu__social-btn {
  border: 1px solid rgba(255,255,255,0.3);
}
body.desktop-mode .user-side-menu__nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.desktop-mode .user-side-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  /* width: 100%; */
  background: #fff;
  color: #222;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
body.desktop-mode .user-side-menu__item i {
  color: #004aad;
  font-size: 18px;
  width: 24px;
  text-align: center;
}
body.desktop-mode .user-side-menu__item:hover {
  background: #f0f4ff;
  border-color: #c9dfff;
  color: #004aad;
}

/* Account pages (notifications, messages, orders) */
.account-page { padding: 0 0 24px; }
.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e9f2;
}
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list__item {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e9f2;
  transition: background 0.2s;
}
.account-list__item:last-child { border-bottom: none; }
.account-list__item:hover { background: #f8fafc; }
.account-list__item--unread { background: #f0f7ff; }
.account-notifications-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  line-height: 1;
}
.account-list__date { font-size: 0.85rem; color: #888; display: block; margin-top: 6px; }
.account-list__badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 8px;
}
.account-list__badge--info { background: #dbeafe; color: #1d4ed8; }
.account-list__badge--success { background: #d1fae5; color: #047857; }
.account-list__badge--warning { background: #fef3c7; color: #b45309; }
.account-list__badge--error { background: #fee2e2; color: #b91c1c; }
.account-orders { display: flex; flex-direction: column; gap: 12px; }
.account-order {
  padding: 16px;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  background: #fafbfc;
}
.account-order--link {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-order--link:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
.account-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.account-order__num { font-weight: 700; color: #004aad; }
.account-order__status { background: #e0e7ff; color: #3730a3; padding: 4px 10px; border-radius: 8px; font-size: 0.9rem; }
.account-order__total { font-weight: 700; color: #222; margin-right: auto; }
.account-order__meta { font-size: 0.9rem; color: #666; }

/* ========== Mobile: home page + layout ========== */
@media (max-width: 768px) {
  body.desktop-mode header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  body.desktop-mode .left-section .site-name {
    font-size: 20px;
  }
  body.desktop-mode .right-section .header-btn,
  body.desktop-mode .right-section .login-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  body.desktop-mode .store-bar {
    padding: 10px 8px;
    gap: 8px;
  }
  body.desktop-mode .store-bar a,
  body.desktop-mode .store-bar button {
    padding: 6px 12px;
    font-size: 13px;
  }
  body.desktop-mode .welcome-bar {
    padding: 8px 12px;
  }
  body.desktop-mode .welcome-text {
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }
  body.desktop-mode #home-sections,
  body.desktop-mode main {
    max-width: 100%;
    padding: 12px 10px;
  }
  body.desktop-mode .custom-slider {
    height: 200px;
    max-width: 100%;
    border-radius: 12px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }
  body.desktop-mode .custom-slider img {
    height: 200px;
  }
  body.desktop-mode .features-section {
    padding: 30px 12px;
    gap: 16px;
  }
  body.desktop-mode .feature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 140px;
    padding: 18px 14px;
  }
  body.desktop-mode .feature h3 {
    font-size: 17px;
  }
  body.desktop-mode .feature p {
    font-size: 14px;
  }
  .buy-combined {
    width: calc(100% - 20px);
    margin: 30px auto;
    padding: 28px 16px;
    border-radius: 16px;
  }
  .buy-combined h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .combined-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .combined-card {
    padding: 18px 14px;
  }
  .combined-card h3 {
    font-size: 16px;
  }
  .combined-card p {
    font-size: 14px;
  }
  .combined-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .footer-card { width: 100%; text-align: center; }
  body.desktop-mode .account-menu-panel { width: min(320px, 100%); }
  footer.outmart-footer {
    padding: 25px 20px;
  }
  footer.outmart-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  footer.outmart-footer .footer-payments img {
    width: 45px;
  }
  footer.outmart-footer .footer-social a {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body.desktop-mode header {
    padding: 10px 12px;
  }
  body.desktop-mode .left-section .site-name {
    font-size: 18px;
  }
  body.desktop-mode .right-section .header-btn,
  body.desktop-mode .right-section .login-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  body.desktop-mode .store-bar a,
  body.desktop-mode .store-bar button {
    padding: 6px 10px;
    font-size: 12px;
  }
  body.desktop-mode .custom-slider {
    height: 160px;
    margin: 0 8px;
    width: calc(100% - 16px);
  }
  body.desktop-mode .custom-slider img {
    height: 160px;
  }
  body.desktop-mode .features-section {
    padding: 20px 10px;
    gap: 12px;
  }
  body.desktop-mode .feature {
    padding: 14px 12px;
    min-height: 120px;
  }
  body.desktop-mode .feature h3 {
    font-size: 16px;
  }
  .buy-combined {
    margin: 20px auto;
    padding: 20px 12px;
    width: calc(100% - 16px);
  }
  .buy-combined h2 {
    font-size: 19px;
    margin-bottom: 18px;
  }
  .combined-card {
    padding: 14px 12px;
  }
  .combined-card h3 {
    font-size: 15px;
  }
  .combined-card p {
    font-size: 13px;
  }
}
