.container {
    max-width: 95%;
    margin: 85px auto;
    padding: 0 15px;
}

/* General Setup */
body { font-family: 'Montserrat', sans-serif; margin: 0; background-color: #fff; color: #252B42; }

/* Header & Dropdown */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; }
.logo { font-size: 24px; font-weight: 700; }
.nav-links a { margin: 0 15px; text-decoration: none; color: #737373; font-weight: 600; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.icon-group i { font-size: 18px; cursor: pointer; color: #252B42; margin-left: 15px; }

.user-menu-container { position: relative; }
.user-profile i { font-size: 28px; cursor: pointer; }
.account-dropdown {
    position: absolute; right: 0; top: 45px; width: 220px;
    background: rgba(0, 0, 0, 0.85); border-radius: 8px;
    padding: 15px 0; display: none; z-index: 100;
}
.account-dropdown.show { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #fff; text-decoration: none; font-size: 14px; }


/* ==========================================
   PROFESSIONAL ECOMMERCE ACCOUNT PAGE
   (NO HEADER / NO FOOTER)
========================================== */

.account-wrapper {
  padding: 40px 0 70px;
}

.welcome-section {
  margin-top: 10px;
}



.welcome-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 40px 0;
}


/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #8a8a8a;
  margin-bottom: 30px;
}

.breadcrumb a {
  text-decoration: none;
  color: #555;
}

.breadcrumb a:hover {
  color: #000;
}

.active-page {
  color: #000;
  font-weight: 600;
}


/* ==========================================
   GRID STRUCTURE
========================================== */

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  align-items: start;
}

/* ==========================================
   CLASSY PROFESSIONAL SIDEBAR
========================================== */

.sidebar {
  padding-right: 40px;
  border-right: 1px solid #ededed;
}

/* Section spacing */
.sidebar-section {
  margin-bottom: 50px;
}

/* Section title */
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b5b5b5;
  margin-bottom: 22px;
}

/* Menu list */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 18px;
}

/* Links */
.sidebar-menu li a,
.standalone-link {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  padding-left: 18px;
  position: relative;
  transition: 0.3s ease;
}

/* Animated left indicator */
.sidebar-menu li a::before,
.standalone-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #000;
  transition: height 0.3s ease;
}

/* Hover */
.sidebar-menu li a:hover::before,
.standalone-link:hover::before {
  height: 18px;
}

/* Active */
.sidebar-menu li a.active {
  font-weight: 700;
}

.sidebar-menu li a.active::before {
  height: 22px;
}

/* Wishlist spacing */
.standalone-link {
  margin-top: 10px;
}

/* Logout */
.logout-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #c00000;
  cursor: pointer;
  padding: 0;
  transition: 0.3s ease;
}

.logout-btn:hover {
  color: #000;
}

/* ==========================================
   CONTENT AREA
========================================== */

.account-content {
  background: #ffffff;
  padding: 50px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Section Titles */
.account-content h3,
.account-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ==========================================
   FORM DESIGN
========================================== */

.form-container {
  padding: 0;
  box-shadow: none;
  background: none;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 35px;
}

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

.input-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #555;
}

.input-field input,
.password-change-section input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.25s ease;
}

.input-field input:focus,
.password-change-section input:focus {
  border-color: #000;
  outline: none;
}

/* Password Section */
.password-change-section h4 {
  margin: 40px 0 20px;
  font-size: 16px;
  font-weight: 700;
}

.password-change-section input {
  margin-bottom: 15px;
}

/* ==========================================
   BUTTONS
========================================== */

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  margin-top: 35px;
}

.cancel-text-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #777;
  font-size: 14px;
}

.save-changes-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 16px 45px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.save-changes-btn:hover {
  opacity: 0.85;
}

/* ==========================================
   ORDER / RETURN CARDS
========================================== */

.account-card {
  background: #fafafa;
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
}

.account-card h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.account-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.account-price {
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
}

/* Status Badge */
.status-badge {
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
}

.status-placed {
  background: #f1f1f1;
  color: #333;
}

.status-returned {
  background: #f4f4f4;
  color: #444;
}

.status-approved {
  background: #e6f2ff;
  color: #0066cc;
}

/* ==========================================
   WALLET SECTION
========================================== */

.wallet-box {
  background: #fafafa;
  padding: 35px;
  border-radius: 14px;
  margin-bottom: 30px;
  border: 1px solid #f0f0f0;
}

.wallet-balance {
  font-size: 32px;
  font-weight: 700;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {

  .account-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ececec;
    padding-bottom: 30px;
    margin-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .account-content {
    padding: 35px;
  }

  .welcome-section h2 {
    font-size: 22px;
  }

}

/* Footer Global */
.main-footer {
    background-color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
}

/* Footer Top Bar */
.footer-top {
    background-color: #FAFAFA; /* Light gray background from Figma */
    padding: 40px 0;
}

.footer-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand-row .logo {
    font-size: 24px;
    font-weight: 700;
    color: #252B42;
}

/* Sidebar Logout Fix */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    color: #ff4d4d;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    margin-top: 20px;
    border: 1px solid #ffebeb;
}
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #23A6F0; /* Primary blue color for icons */
    font-size: 24px;
}

/* Footer Middle (Links) */
.footer-middle {
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns as seen in design */
    gap: 30px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 700;
    color: #252B42;
    margin-bottom: 20px;
}

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

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

.footer-col ul li a {
    text-decoration: none;
    color: #737373;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #23A6F0;
}

/* Newsletter Input */
.subscribe-form {
    display: flex;
    height: 50px;
}

.subscribe-form input {
    background: #F9F9F9;
    border: 1px solid #E6E6E6;
    border-radius: 5px 0 0 5px;
    padding: 0 20px;
    flex: 1;
    font-size: 14px;
}

.subscribe-form button {
    background-color: #23A6F0;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    font-weight: 400;
    cursor: pointer;
}

.form-text {
    font-size: 12px;
    color: #737373;
    margin-top: 10px;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #FAFAFA;
    padding: 25px 0;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 700;
    color: #737373;
    text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter { grid-column: span 2; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter { grid-column: span 1; }
    .footer-brand-row { flex-direction: column; gap: 20px; text-align: center; }
}
/* Container for the cart and checkout area */
.cart-page {
    margin-bottom: 40px; /* Reduced from 100px for a smaller gap */
}

/* The ENVA Brand Section in Footer */
.main-footer {
    border-top: 1px solid #F1F1F1;
    padding-top: 40px; /* Smaller internal top padding */
}

/* Spacing between ENVA logo and the 5-column grid */
.footer-top {
    margin-bottom: 30px; /* Tightens the area around the ENVA logo */
}
/* =====================================================
   MOBILE ACCOUNT TABS (LIKE TOKYOSPORTS)
===================================================== */

@media (max-width: 768px) {

  /* remove grid sidebar layout */
  .account-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* sidebar becomes horizontal */
  .sidebar {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;

    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE */
  }

  .sidebar::-webkit-scrollbar {
    display: none;                /* Chrome */
  }

  /* hide section headings */
  .sidebar-category h4 {
    display: none;
  }

  /* flatten lists */
  .sidebar-category ul {
    display: flex;
    gap: 12px;
    padding: 0;
  }

  .sidebar-category ul li {
    margin: 0;
    white-space: nowrap;
  }

  /* tab style */
  .sidebar-category ul li a,
  .standalone-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
    text-decoration: none;
    transition: 0.3s;
  }

  /* active tab */
  .sidebar-category ul li a.active {
    background: #23A6F0;
    color: #fff;
  }

  /* wishlist as tab */
  .standalone-link {
    background: #f5f5f5;
  }

  /* hide logout button from tab row */
  .logout-btn {
    display: none;
  }

  /* form spacing fix */
  .form-container {
    padding: 25px;
  }

  .welcome-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }
}


/* =========================
   ACCOUNT MOBILE SCROLL MENU
========================= */

@media (max-width:768px){

  /* stack layout */
  .account-grid{
    display:flex;
    flex-direction:column;
  }

  /* sidebar becomes horizontal */
  .sidebar{
    width:100%;
    overflow-x:auto;
    padding-bottom:10px;
  }

  /* remove section titles on mobile */
  .sidebar-title{
    display:none;
  }

  /* horizontal menu */
  .sidebar-menu{
    display:flex;
    gap:12px;
    overflow-x:auto;
  }

  .sidebar-menu li{
    flex:0 0 auto;
    list-style:none;
  }

  .sidebar-menu a{
    white-space:nowrap;
    padding:8px 14px;
    background:#f5f5f5;
    border-radius:8px;
    font-size:13px;
  }

  /* active tab */
  .sidebar-menu a.active{
    background:#111;
    color:#fff;
  }

  /* hide scrollbar */
  .sidebar-menu::-webkit-scrollbar{
    display:none;
  }

}

/* =========================
   MOBILE ACCOUNT SPACING
========================= */

@media (max-width:768px){

  /* push the hello text down */
  .welcome-section{
    margin-top:20px;
    margin-bottom:12px;
  }

  /* spacing for horizontal menu */
  .sidebar{
    margin-top:8px;
    margin-bottom:18px;

    
  }

}

/* MOBILE ACCOUNT SPACING FIX */

@media (max-width:768px){

  .account-wrapper{
    padding-top:70px;
  }

}

/* smooth scroll for mobile tabs */
.sidebar{
  scroll-behavior: smooth;
}