/* ============================================
   ATTIRO FASHIONS — Base / Reset Styles
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary, #F4F4F4);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary, #F4F4F4);
  margin: 0;
  padding: 0;
  letter-spacing: -0.01em;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); }
h4 { font-size: var(--text-md); font-family: var(--font-body); }
h5 { font-size: var(--text-base); font-family: var(--font-body); }
h6 { font-size: var(--text-sm); font-family: var(--font-body); }

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-heading);
}

small {
  font-size: var(--text-sm);
  color: var(--accent);
}

/* ── Selection ── */
::selection {
  background-color: var(--accent);
  color: var(--white);
}

/* ── Focus outline for accessibility ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Lists ── */
ul, ol {
  padding-left: var(--space-lg);
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Page Title / Breadcrumb Area ── */
.page-title-area {
  background-color: var(--bg-warm) !important;
  padding: var(--space-xl) 0 !important;
  margin-bottom: var(--space-xl);
}

.page-title-area .page-title-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.page-title-area .page-title-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-sm);
}

.page-title-area .page-title-content ul li {
  font-size: var(--text-sm);
  color: var(--accent);
}

.page-title-area .page-title-content ul li a {
  color: var(--text-primary);
}

.page-title-area .page-title-content ul li a:hover {
  color: var(--accent);
}

.page-title-area .page-title-content ul li + li::before {
  content: '›';
  margin-right: var(--space-sm);
  color: var(--accent-light);
}

/* ── Section Title ── */
.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title .sub-title {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-heading);
}

/* ── Flash Messages ── */
.flash-message {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
  animation: attiro-slideIn 0.4s ease;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  z-index: 10000;
  background: var(--white);
}

.flash-message svg {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.flash-message.error-message {
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.flash-message.success-message {
  color: var(--success);
  border-left: 4px solid var(--success);
}

@keyframes attiro-slideIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Notification Toasts ── */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10001;
  box-shadow: var(--shadow-md);
  animation: attiro-fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
  font-size: var(--text-sm);
}

.notification.success {
  background-color: var(--success);
  color: var(--white);
}

.notification.error {
  background-color: var(--danger);
  color: var(--white);
}

.notification .close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  margin-left: var(--space-md);
}

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