/* ============================================================
   Eva's Art & Design — Global Stylesheet
   ============================================================ */

:root {
  --brand-start: #667eea;
  --brand-end:   #764ba2;
  --brand-gradient: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);
  --text-dark:   #2d3748;
  --text-mid:    #4a5568;
  --text-light:  #718096;
  --border:      #e2e8f0;
  --bg:          #f8f9fa;
  --white:       #ffffff;
  --red:         #e74c3c;
  --green:       #27ae60;
  --header-h:    106px;
  --banner-h:    42px;
  --radius:      16px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.16);
  --max-w:       1600px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  padding-top: var(--header-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
}

/* ── Announcement Banner ─────────────────────────────────── */
.announcement-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  min-height: var(--banner-h);
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--brand-gradient);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  padding: 0 50px;
  text-align: center;
  transition: opacity 0.4s, transform 0.4s;
}
.announcement-banner.show { display: flex; }
.announcement-banner.hide-banner {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.announcement-banner a { color: var(--white); text-decoration: underline; margin-left: 8px; }
.announcement-banner .close-btn {
  position: absolute; right: 16px;
  background: none; border: none;
  color: var(--white); font-size: 20px;
  cursor: pointer; line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.announcement-banner .close-btn:hover { opacity: 1; }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-top {
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-search { flex: 1; max-width: 560px; }
.header-search form {
  display: flex;
  background: #f7f7f7;
  border: 2px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search form:focus-within {
  border-color: var(--brand-start);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.header-search input {
  flex: 1; min-width: 0;
  border: none; background: transparent;
  padding: 10px 18px;
  font-size: 14px; font-family: inherit;
  outline: none; color: var(--text-dark);
}
.header-search input::placeholder { color: var(--text-light); }
.header-search button {
  background: var(--brand-gradient);
  border: none; padding: 0 18px;
  cursor: pointer; color: var(--white);
  display: flex; align-items: center;
  transition: opacity 0.2s;
}
.header-search button:hover { opacity: 0.88; }

.header-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  height: 42px;
  display: flex;
  align-items: center;
}
.header-nav .top-nav {
  max-width: var(--max-w);
  width: 100%; margin: 0 auto;
  padding: 0 30px;
  display: flex; gap: 28px; list-style: none;
}
.top-nav a {
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  font-size: 16px;
}
.top-nav a:hover,
.top-nav a.active { color: var(--brand-start); font-weight: 600; }

/* ── Site Banner ─────────────────────────────────────────── */
.site-banner { line-height: 0; }
.site-banner img { width: 100%; height: auto; display: block; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-container {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb {
  font-size: 15px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--brand-start); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ── Main container (sidebar layout) ────────────────────── */
.main-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar-container { position: relative; }
.sidebar { width: 220px; flex-shrink: 0; }

.section-tabs {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.section-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.section-tab:last-child { border-bottom: none; }
.section-tab:hover { background: var(--bg); color: var(--text-dark); }
.section-tab.active { background: #f0f2ff; color: var(--brand-start); font-weight: 600; }
.section-parent { font-weight: 700; color: var(--text-dark); background: #fafafa; }
.section-child { padding-left: 28px; }

.tab-count {
  font-size: 12px; color: var(--text-light);
  background: var(--bg); border-radius: 10px;
  padding: 2px 8px; min-width: 26px;
  text-align: center; flex-shrink: 0;
}
.section-tab.active .tab-count { background: var(--brand-start); color: var(--white); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  padding: 9px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  color: var(--text-dark);
  cursor: pointer; text-align: left;
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.mobile-menu-toggle:hover { border-color: var(--brand-start); }
.mobile-menu-toggle.active { border-color: var(--brand-start); }

/* ── Homepage Collage Cards ──────────────────────────────── */
.collages-area { flex: 1; min-width: 0; }
.collages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.collage-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.collage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.collage-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 2px;
  background: #eee;
}
.collage-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.collage-card:hover .collage-image { transform: scale(1.05); }

.collage-info {
  padding: 28px;
  text-align: center;
}
.collage-title {
  font-size: 26px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.collage-description {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 18px;
}
.collage-button {
  display: inline-block;
  padding: 11px 28px;
  background: var(--brand-gradient);
  color: var(--white);
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.collage-button:hover { opacity: 0.88; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 50px 30px 30px;
  margin-top: 60px;
}
.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #4a5568;
}
.footer-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-section a {
  display: block;
  color: #a0aec0;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-section a:hover { color: var(--brand-start); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 22px auto 0;
  text-align: center;
  color: #718096;
  font-size: 13px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-start);
  color: var(--brand-start);
}

/* ── Product Labels (shared) ─────────────────────────────── */
.product-labels {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}
.product-label {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.product-label.featured  { background: var(--brand-gradient); }
.product-label.bestseller{ background: #78b657; }
.product-label.sale      { background: var(--red); }
.product-label.new       { background: var(--green); }
.product-label.popular   { background: #f39c12; }
.product-label.wedding   { background: #e84393; }
.product-label.baby      { background: #00cec9; }
.product-label.luxury    { background: #6c5ce7; }
.product-label.flower    { background: #fd79a8; }
.product-label.gift      { background: #00b894; }

/* ── Loading Spinner ─────────────────────────────────────── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(102,126,234,0.2);
  border-top-color: var(--brand-start);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page Sections (About / Contact / Reviews / FAQ) ─────── */
.page-hero {
  background: var(--brand-gradient);
  color: var(--white);
  text-align: center;
  padding: 60px 30px;
}
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.page-hero p  { font-size: 18px; opacity: 0.92; }

.page-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px;
}
.page-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.page-section p { color: var(--text-mid); margin-bottom: 14px; line-height: 1.8; }

/* ── Star Rating ─────────────────────────────────────────── */
.stars { color: #f39c12; font-size: 18px; letter-spacing: 2px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-container { flex-direction: column; padding: 10px 20px 20px; }
  .sidebar { display: none; }
  .sidebar.mobile-show {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 240px; z-index: 500;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-toggle { display: block; padding: 4px 12px; font-size: 13px; }
  .collages-grid { gap: 14px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-top { padding: 0 14px; gap: 12px; }
  .logo { font-size: 18px; }
  .header-nav .top-nav { padding: 0 14px; gap: 14px; }
  .top-nav a { font-size: 15px; }
  .collage-images { grid-template-rows: repeat(2, 110px); }
  .collage-info { padding: 14px; }
  .collage-title { font-size: 16px; }
  .collage-description { font-size: 12px; margin-bottom: 10px; }
  .collage-button { padding: 8px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .header-top { padding: 0 10px; gap: 8px; }
  .logo { font-size: 15px; }
  .header-search input { padding: 8px 12px; font-size: 13px; }
  .header-nav .top-nav { padding: 0 10px; gap: 8px; flex-wrap: wrap; }
  .top-nav a { font-size: 14px; }
  .main-container { padding: 12px; }
  .collages-grid { gap: 8px; }
  .collage-images { grid-template-rows: repeat(2, 80px); }
  .collage-info { padding: 10px; }
  .collage-title { font-size: 13px; }
  .collage-description { display: none; }
  .collage-button { padding: 6px 12px; font-size: 11px; }
  footer { padding: 36px 16px 20px; }
}
