/* ==========================================================================
   GLOBAL VARIABLES & DESIGN SYSTEM (Amazon Inspired + Custom Brand Colors)
   ========================================================================== */
:root {
  --bg-header-footer: #162232;
  --color-primary-yellow: #FEC503;
  --color-primary-yellow-hover: #e0ac00;
  --color-text-white: #ffffff;
  --color-text-dark: #0F1111;
  --color-text-muted: #565959;
  --color-bg-page: #EAEDED;
  --color-card-bg: #FFFFFF;
  --color-border: #D5D9D9;
  --color-danger: #C40000;
  --color-danger-bg: #FCF4F4;
  --font-family: 'Montserrat', sans-serif;
  --transition-speed: 0.2s ease-in-out;
  --box-shadow-card: 0 2px 5px rgba(15, 17, 17, 0.15);
  --box-shadow-hover: 0 8px 18px rgba(15, 17, 17, 0.2);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-page);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ==========================================================================
   HEADER & FOOTER STYLING
   ========================================================================== */
.app-header {
  background-color: var(--bg-header-footer);
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.cart-icon {
  width: 26px;
  height: 26px;
  fill: var(--color-text-white);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 0.5px;
}

.brand-highlight {
  color: var(--color-primary-yellow);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--color-text-white);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-icon {
  width: 26px;
  height: 26px;
}

/* Footer */
.app-footer {
  background-color: var(--bg-header-footer);
  color: var(--color-text-white);
  text-align: center;
  padding: 18px 16px;
  font-size: 0.85rem;
  margin-top: auto;
  user-select: none;
}

.footer-brand {
  font-weight: 600;
}

/* ==========================================================================
   DRAWER MENU (AMAZON STYLE)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  backdrop-filter: blur(2px);
  transition: opacity var(--transition-speed);
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: var(--color-card-bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

.app-drawer.open {
  transform: translateX(0);
}

.drawer-user-header {
  background-color: var(--bg-header-footer);
  color: var(--color-text-white);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-weight: 700;
  font-size: 1rem;
}

.drawer-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  position: relative;
  display: block;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-link:hover {
  background-color: #F3F3F3;
}

.drawer-link:active {
  transform: scale(0.98);
}

.drawer-link.active {
  border-left: 4px solid var(--color-primary-yellow);
  background-color: #FFF9E6;
}


/* ==========================================================================
   LAYOUT & SCREEN CONTAINERS
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 20px 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.screen-view {
  width: 100%;
}

.hidden {
  display: none !important;
}





.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-social a {
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-social a:hover {
  color: var(--color-primary-yellow);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.footer-menu a {
  color: var(--color-text-white);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition-speed);
}

.footer-menu a:hover {
  color: var(--color-primary-yellow);
  text-decoration: underline;
}

.footer-copyright {
  line-height: 1.5;
}

/* Footer policy and copyright separation */
.footer-menu {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #FEC503;
}

.footer-copyright {
    padding-top: 2px;
}

/* Drawer Menu Hover Effect */
.drawer-link:hover {
    background-color: rgba(254, 197, 3, 0.12);
    color: #FEC503;
    text-decoration: none;
}

.drawer-link:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #FEC503;
}

/* ==========================================================================
   MAINTENANCE / DEACTIVATION BANNER STYLING
   ========================================================================== */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.maintenance-card {
  background-color: var(--color-card-bg);
  max-width: 500px;
  width: 100%;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-top: 6px solid var(--color-danger);
}

.maintenance-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.maintenance-icon svg {
  width: 32px;
  height: 32px;
}

.maintenance-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.maintenance-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: break-word;
}

.maintenance-footer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.offline-badge {
  color: var(--color-danger);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
