/* Global Styles and Variables */
:root {
    --burgundy: #7A2B3F;
    --burgundy-dark: #4A1A28;
    --blush: #F8E8E6;
    --blush-light: #FCF5F3;
    --gold: #D4A854;
    --cream: #FDF8F4;
    --ink: #1A1214;
    --ink-muted: #6B5E5E;
    --border-subtle: #E5D5D3;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 64px;
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
}

/* ── Announcement bar — horizontal infinite ticker ───────────────── */
.announcement-bar {
    background: #2C2C2C;
    height: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* The track slides left; items are laid out in a single row and duplicated for a seamless loop */
.announcement-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    animation: tickerSlide 28s linear infinite;
    will-change: transform;
}

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

/* Each individual message */
.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 48px;          /* horizontal gap between items */
    height: 36px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Separator dot between items */
.announcement-item::after {
    content: '✦';
    position: absolute;
    right: 0;
    color: rgba(255,255,255,0.35);
    font-size: 8px;
}

.announcement-item {
    position: relative;
}

/* Slide left by exactly the width of one full set of 5 items.
   Each item is ~ (text width + 96px padding).
   We duplicate the set so the loop is seamless. */
@keyframes tickerSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--burgundy);
}

.main-nav {
    display: none;
    gap: 40px;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.main-nav a:hover {
    color: var(--burgundy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--burgundy);
  transition: color 0.2s;
}

.search-btn:hover { color: var(--burgundy-dark); }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--burgundy);
    transition: color 0.2s;
}

.cart-btn:hover {
    color: var(--burgundy-dark);
}

.cart-btn #cart-count {
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--burgundy-dark);
    color: var(--white);
    padding: 64px 32px 40px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--blush);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 14px;
    color: var(--blush);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1440px;
    margin: 56px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--blush);
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--blush);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.social-link:hover {
    color: var(--burgundy-dark);
    background: var(--blush);
    border-color: var(--blush);
}

.social-link svg {
    display: block;
}

.footer-brand .social-links {
    margin-top: 18px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--ink-muted);
    font-size: 14px;
}

/* Sections */
section {
    padding: 80px 32px;
}

@media (min-width: 1024px) {
    section {
        padding: 96px 64px;
    }
}

/* Page specific: FAQ and Wig Care */
.page-content.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20,14,14,0.06);
}

.page-content .content h1 {
    font-family: Georgia, serif;
    font-size: 32px;
    color: var(--burgundy);
    margin-bottom: 18px;
}

.page-content .content h2 {
    font-size: 20px;
    color: var(--burgundy-dark);
    margin-top: 24px;
    margin-bottom: 12px;
    border-left: 4px solid var(--gold);
    padding-left: 12px;
}

.page-content .content p {
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.page-content .content dl {
    margin-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.page-content .content dt {
    padding: 18px 0 6px;
    font-weight: 700;
    color: var(--ink);
}

.page-content .content dd {
    padding: 0 0 12px 0;
    color: var(--ink-muted);
    line-height: 1.6;
}

.page-wig-care .content h3 {
    margin-top: 12px;
    color: var(--burgundy);
}

.page-wig-care .content ul {
    margin: 8px 0 16px 20px;
    color: var(--ink-muted);
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .page-content.container {
        padding: 28px 12px;
    }
    .page-content .content h1 { font-size: 24px; }
}
