/* ==========================================================================
   Art by Alexandra — stil public
   Direcție: ivory, charcoal, roz pudrat, acuarelă; serif elegant + handwritten
   ========================================================================== */

:root {
  --ivory:        #faf6f0;
  --ivory-deep:   #f3ece2;
  --paper:        #fffdf9;
  --charcoal:     #2b2a28;
  --charcoal-soft:#4a4642;
  --muted:        #8a827a;
  --rose:         #d9a7a0;
  --rose-soft:    #f0dcd6;
  --rose-wash:    #f7ebe6;
  --beige:        #cdb9a5;
  --line:         #e7ddd0;
  --serif:  'Playfair Display', Georgia, serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;
  --container: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(72, 58, 48, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--charcoal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }

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

.section { padding: 72px 0; }
.section.pt-0 { padding-top: 0; }
.section-tinted { background: var(--rose-wash); }

/* --- Butoane ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: all .25s;
  line-height: 1.2;
}
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--charcoal-soft); color: #fff; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--beige); }
.btn-outline:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-lg { padding: 16px 36px; }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-block { width: 100%; text-align: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-script { font-family: var(--script); font-size: 34px; font-weight: 600; color: var(--charcoal); }
.logo-sub { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .06em;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--rose); color: var(--charcoal); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: inline-flex; padding: 6px; }
.cart-count {
  position: absolute; top: -2px; right: -6px;
  background: var(--charcoal); color: #fff;
  font-size: 10px; font-weight: 500;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .25s; }

/* --- Flash -------------------------------------------------------------- */
.flash { margin-top: 18px; padding: 14px 20px; border-radius: var(--radius); font-size: 15px; }
.flash-success { background: #eef4e9; color: #47603a; border: 1px solid #d7e4cc; }
.flash-error { background: #f9ebe8; color: #8c4a3e; border: 1px solid #eed4cc; }

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--ivory); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
  min-height: 520px;
}
.hero-text h1 { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.hero-serif { font-family: var(--serif); font-size: clamp(38px, 5vw, 58px); font-weight: 500; }
.hero-script { font-family: var(--script); font-size: clamp(42px, 5.5vw, 64px); font-weight: 600; color: var(--charcoal-soft); }
.hero-script::after { content: ' ♡'; color: var(--rose); font-size: .55em; vertical-align: middle; }
.hero-lead { max-width: 420px; margin-bottom: 32px; color: var(--charcoal-soft); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art img { width: 100%; height: auto; }

/* --- Titluri secțiune --------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.script-title {
  font-family: var(--script);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  position: relative;
  display: inline-block;
}
.script-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 70%; height: 7px;
  background: linear-gradient(90deg, var(--rose-soft), transparent);
  border-radius: 4px;
}
.heart { color: var(--rose); }
.link-arrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.link-arrow:hover { color: var(--rose); }

/* --- Grile lucrări ------------------------------------------------------ */
.art-grid { display: grid; gap: 28px; }
.art-grid-4 { grid-template-columns: repeat(4, 1fr); }
.art-grid-3 { grid-template-columns: repeat(3, 1fr); }

.art-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.art-card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-deep); }
.art-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.art-card:hover .art-card-img img { transform: scale(1.03); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
}
.badge-sold { background: var(--charcoal); color: #fff; }
.art-card-body { padding: 18px 20px 20px; }
.art-card-body h3 { font-size: 19px; margin-bottom: 4px; }
.art-technique { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.art-price { font-size: 15.5px; font-weight: 500; letter-spacing: .02em; }
.art-sold { color: var(--muted); font-style: italic; font-weight: 300; }

/* --- Despre (teaser homepage) ------------------------------------------- */
.about-teaser {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}
.about-teaser-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  border: 10px solid #fff;
}
.about-teaser-text .script-title { margin-bottom: 20px; }
.about-teaser-text p { margin-bottom: 16px; color: var(--charcoal-soft); }
.about-teaser-text .btn { margin-top: 8px; }

/* --- Blog --------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory-deep); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-body time { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.blog-card-body h2, .blog-card-body h3 { font-size: 20px; margin: 8px 0 10px; }
.blog-card-body p { font-size: 14.5px; color: var(--charcoal-soft); margin-bottom: 14px; }

/* --- Newsletter band ---------------------------------------------------- */
.newsletter-band {
  background: var(--rose-wash);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.newsletter-text .script-accent { font-family: var(--script); font-size: 28px; font-weight: 600; }
.newsletter-text p:last-child { color: var(--charcoal-soft); font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  min-width: 260px;
}
.newsletter-form input:focus { outline: 2px solid var(--rose-soft); border-color: var(--rose); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .logo-script { font-size: 30px; }
.footer-social { display: flex; gap: 16px; margin-top: 14px; }
.footer-social a { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-social a:hover { color: var(--rose); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-self: center; }
.footer-nav a { font-size: 13.5px; }
.footer-legal { text-align: right; color: var(--muted); }
.footer-legal a { display: inline-block; margin-left: 14px; font-size: 13px; color: var(--muted); }
.footer-legal a:hover { color: var(--rose); }
.footer-legal p { margin-top: 10px; font-size: 12.5px; }
.stripe-note { font-size: 12.5px; color: var(--muted); }

/* --- Pagini interne ----------------------------------------------------- */
.page-head { padding-bottom: 36px; }
.page-head .script-title { font-size: clamp(40px, 5vw, 54px); }
.page-sub { max-width: 560px; color: var(--charcoal-soft); margin-top: 14px; }

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: all .2s;
}
.filter-pill:hover { border-color: var(--rose); color: var(--charcoal); }
.filter-pill.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort-form select {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.empty-state { color: var(--muted); padding: 40px 0; font-size: 17px; }
.empty-state a { text-decoration: underline; }

/* --- Pagina lucrării ---------------------------------------------------- */
.artwork-detail {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: start;
}
.artwork-main-img img {
  width: 100%;
  border-radius: var(--radius);
  border: 12px solid #fff;
  box-shadow: var(--shadow);
}
.artwork-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.artwork-thumbs img {
  width: 74px; height: 74px; object-fit: cover;
  border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; opacity: .75; transition: all .2s;
}
.artwork-thumbs img:hover, .artwork-thumbs img.active { opacity: 1; border-color: var(--rose); }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--rose); }

.artwork-info h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.artwork-specs { list-style: none; margin-bottom: 22px; color: var(--muted); font-size: 14.5px; }
.artwork-specs li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.artwork-desc { margin-bottom: 26px; color: var(--charcoal-soft); }
.artwork-price { font-family: var(--serif); font-size: 30px; margin-bottom: 22px; }
.artwork-price.sold { font-size: 20px; color: var(--muted); font-style: italic; }
.artwork-reserved { font-size: 14.5px; color: #8c4a3e; background: #f9ebe8; padding: 14px 18px; border-radius: var(--radius); }

/* --- Coș ---------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 7fr 4fr; gap: 44px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.cart-item-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.cart-item-info h3 { font-size: 18px; margin-bottom: 2px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty-form input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 3px; font-family: var(--sans); }
.qty-original { font-size: 12.5px; color: var(--muted); font-style: italic; }
.btn-remove {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); text-decoration: underline;
}
.btn-remove:hover { color: #8c4a3e; }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.cart-summary h2 { font-size: 22px; margin-bottom: 18px; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.cart-summary dl .total { font-weight: 500; font-size: 17px; border-bottom: none; padding-top: 14px; }
.cart-summary form { margin-top: 18px; }
.cart-summary .stripe-note { margin-top: 14px; text-align: center; }

/* --- Contact ------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
.contact-form label { display: block; margin-bottom: 18px; font-size: 14px; letter-spacing: .04em; color: var(--charcoal-soft); }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15.5px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--rose-soft); border-color: var(--rose); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }
.contact-aside h2 { font-size: 22px; margin-bottom: 16px; }
.contact-aside ul { list-style: none; }
.contact-aside li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.contact-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* --- Despre mine (pagina) ----------------------------------------------- */
.about-page { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about-photo img {
  border-radius: var(--radius);
  border: 10px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.about-story p { margin-bottom: 18px; color: var(--charcoal-soft); }
.about-signature { font-size: 44px; color: var(--charcoal); margin-top: 8px; }

/* --- Articol blog -------------------------------------------------------- */
.article-page { max-width: 760px; }
.article-head { margin-bottom: 28px; }
.article-head time { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.article-head h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 10px; }
.article-img { margin-bottom: 28px; }
.article-img img { border-radius: var(--radius); }
.article-content { color: var(--charcoal-soft); font-size: 17px; }
.article-content p { margin-bottom: 18px; }

/* --- Pagini juridice / sistem -------------------------------------------- */
.legal-page { max-width: 760px; color: var(--charcoal-soft); }
.legal-page h2 { font-size: 22px; margin: 30px 0 12px; color: var(--charcoal); }
.legal-page p { margin-bottom: 14px; }
.legal-page a { text-decoration: underline; }
.system-page { text-align: center; max-width: 620px; padding: 40px 24px; margin: 0 auto; }
.system-page .hero-cta { justify-content: center; margin-top: 28px; }
.system-page p { margin-bottom: 12px; color: var(--charcoal-soft); }

/* --- Cookie banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  z-index: 100;
  font-size: 14px;
}
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .art-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .art-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .artwork-detail, .cart-layout, .contact-layout, .about-page { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal { text-align: left; }
  .footer-legal a { margin-left: 0; margin-right: 14px; }
}

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-img img { width: 72px; height: 72px; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}

@media (max-width: 460px) {
  .art-grid-4, .art-grid-3 { grid-template-columns: 1fr; }
}
