/*
 * Theme Name: Amsterdam Books EU
 * Description: Premium coffee-table book store — Elementor hybrid theme.
 * Version: 1.2.0
 * Text Domain: amsterdambookseu
 */

/* ========== DESIGN TOKENS ========== */

:root {
  --ink: #222222;
  --warm: #F8F7F4;
  --cream: #EFEAE2;
  --surface: #FDFCF8;
  --bronze: #8B7355;
  --primary: #33373D;
  --mid: #666666;
  --muted: #666666;
  --soft: #999999;
  --border: #E5E5E5;
  --sans: 'Poppins', -apple-system, 'system-ui', 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --shell: 1440px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;
  --space-3xl: 144px;
}

/* ========== RESET ========== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 0.4em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ========== CONTAINER ========== */

.ab-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== SKIP LINK ========== */

.ab-skip {
  position: absolute;
  top: -1000px;
  left: 8px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 500;
}

.ab-skip:focus { top: 8px; }

/* ========== HEADER ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.site-nav {
  display: flex;
  gap: 32px;
  justify-self: start;
}

.site-nav__link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav__link:hover { color: var(--ink); opacity: 1; }

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-brand span {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  line-height: 10.8px;
  text-transform: none;
  letter-spacing: 2px;
  color: var(--soft);
  margin-top: 1px;
}

.site-icons {
  display: flex;
  gap: 20px;
  justify-self: end;
  align-items: center;
}

.site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink);
  transition: opacity 0.3s ease;
  position: relative;
}

.site-icon:hover { opacity: 0.5; }

.site-icon svg { width: 18px; height: 18px; }

.site-icon__count {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 8px;
  font-weight: 500;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.site-icon__count:empty { display: none; }

/* ========== MAIN ========== */

.site-main {
  min-height: 60vh;
  padding-top: 64px;
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
  margin-top: 120px;
}

.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: #fff; opacity: 1; }

.site-footer .site-brand {
  color: #fff;
  align-items: flex-start;
  margin-bottom: 24px;
}

.site-footer .site-brand span { color: rgba(255, 255, 255, 0.4); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.site-footer__grid p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.site-footer__grid p a { color: rgba(255, 255, 255, 0.6); }

.site-footer__grid h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 12.65px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 24px;
}

.site-footer__grid > div { display: flex; flex-direction: column; gap: 12px; }
.site-footer__grid > div a { font-size: 14px; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__bottom span:last-child { font-size: 11px; letter-spacing: 0.5px; }

/* ========== REVEAL ANIMATIONS ========== */

.ab-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fadeInUp {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadeInUp.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ELEMENTOR OVERRIDES ========== */

.elementor { background: var(--warm); }
.elementor-section { background: var(--warm); }
.elementor-widget-container { font-family: var(--sans); }

/* Editorial typography for all headings */
.elementor-heading-title {
  font-family: var(--serif);
  font-weight: 400;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
}

/* Who we are heading – larger, refined */
.elementor-element-2392ee2 .elementor-heading-title {
  font-size: 48px !important;
  line-height: 40px !important;
  letter-spacing: -0.5px !important;
  color: var(--ink) !important;
}

/* Who we are body text */
.elementor-element-84012b6 {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: var(--mid) !important;
}

/* Centre Stage / The Timeless Case text columns – restrict width */
.elementor-element-62f5fa9,
.elementor-element-cc52c12 {
  max-width: 480px !important;
}

.elementor-element-c6689d8 .elementor-heading-title,
.elementor-element-d14d8ba .elementor-heading-title {
  font-size: 40px !important;
  line-height: 40px !important;
  letter-spacing: -0.3px !important;
  color: var(--ink) !important;
}

/* Hero overlay panel – fully hidden per user request */
.elementor-element-068a247a {
  display: none !important;
}

/* Hero heading hidden */
.elementor-element-191cf8d8 { display: none !important; }

/* Hero subtitle */
/* Hero subtitle hidden */
.elementor-element-bd3bdbbd { display: none !important; }

/* ========== BUTTONS – Minimal luxury ========== */

.elementor-button {
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  letter-spacing: 2.5px !important;
  border-radius: 0 !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.elementor-button:hover {
  opacity: 0.85 !important;
  background: var(--ink) !important;
  color: #fff !important;
  border: none !important;
}

/* Hero DISCOVER button hidden */
.elementor-element-25aec539 { display: none !important; }

/* Centre Stage + Timeless Case buttons – outlined */
.elementor-element-dc3339f2 .elementor-button,
.elementor-element-b984e9f .elementor-button {
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 14px 40px !important;
  border: 1px solid var(--ink) !important;
}

.elementor-element-dc3339f2 .elementor-button:hover,
.elementor-element-b984e9f .elementor-button:hover {
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
}

/* ========== HERO + TOP CONTAINER FULL-WIDTH FIX ========== */

[data-elementor-type="wp-page"] > .elementor-element.e-con-boxed {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

[data-elementor-type="wp-page"] > .elementor-element.e-con-boxed > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

.elementor-element-3c84dcf9.e-con-boxed {
  max-width: 100% !important;
  width: 100% !important;
}

.elementor-element-3c84dcf9.e-con-boxed > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

.elementor-element-3c84dcf9 {
  padding: 0 !important;
  background-image: url(https://www.luxurylifestylemag.co.uk/wp-content/uploads/2024/03/bigstock-142496366.jpg) !important;
  background-size: cover !important;
  background-position: center center !important;
}

.elementor-element-3c84dcf9 > .e-con-inner {
  padding: 0 !important;
}

/* ========== SOCIAL SECTION ========== */

.elementor-element-007c890 .elementor-heading-title {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 14.4px !important;
  letter-spacing: 3px !important;
  color: var(--soft) !important;
}

.elementor-element-46962fb7 .elementor-heading-title {
  font-size: 44px !important;
  line-height: 40px !important;
  letter-spacing: -0.3px !important;
}

/* Hide "List Item" text in social icon list */
.elementor-element-6541a84e .elementor-icon-list-text { display: none; }

.elementor-element-6541a84e .elementor-icon-list-icon svg {
  fill: var(--ink) !important;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s ease;
}

.elementor-element-6541a84e .elementor-icon-list-item:hover .elementor-icon-list-icon svg {
  opacity: 0.5;
}

/* ========== PRODUCT GRID ========== */

.ab-pg {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.ab-pg__card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: opacity 0.3s ease;
}

.ab-pg__card:hover { opacity: 0.85; }

.ab-pg__media {
  display: block;
  overflow: hidden;
  background: var(--cream) !important;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
}

.ab-pg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ab-pg__card:hover .ab-pg__img {
  transform: scale(1.03);
}

.ab-pg__title {
  font-family: var(--serif) !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  margin: 0 0 6px !important;
  line-height: 25px !important;
  letter-spacing: -0.2px !important;
  text-transform: none !important;
}

.ab-pg__price {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: var(--soft);
  letter-spacing: 0.5px;
}

/* ========== INSTAGRAM GRID ========== */

.elementor-widget-html div[style*="grid-template-columns:repeat(4,1fr)"] {
  max-width: 480px !important;
  margin: 0 auto !important;
}

/* ========== WOOCOMMERCE CART BADGE ON HEADER ========== */

.site-icon--bag { position: relative; }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .ab-pg {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .elementor-element-191cf8d8 .elementor-heading-title {
    font-size: 44px !important;
  }

  .elementor-element-2392ee2 .elementor-heading-title {
    font-size: 36px !important;
    line-height: 36px !important;
  }

  .elementor-element-c6689d8 .elementor-heading-title,
  .elementor-element-d14d8ba .elementor-heading-title {
    font-size: 32px !important;
    line-height: 32px !important;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    height: 56px;
    padding: 0 20px;
  }

  .site-nav { gap: 16px; }

  .site-nav__link { font-size: 10px; letter-spacing: 1px; }

  .site-brand { font-size: 15px; }

  .site-brand span { font-size: 8px; }

  .site-icons { gap: 14px; }

  .site-main { padding-top: 56px; }

  .ab-shell { padding: 0 20px; }

  .elementor-element-068a247a .elementor-element-9f20570f {
    padding: 48px 24px !important;
  }

  .elementor-element-191cf8d8 .elementor-heading-title {
    font-size: 32px !important;
    letter-spacing: 1px !important;
  }

  .elementor-element-2392ee2 .elementor-heading-title {
    font-size: 28px !important;
    line-height: 28px !important;
  }

  .elementor-element-c6689d8 .elementor-heading-title,
  .elementor-element-d14d8ba .elementor-heading-title {
    font-size: 26px !important;
    line-height: 26px !important;
  }

  .ab-pg {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ab-pg__title {
    font-size: 17px;
  }

  .site-footer {
    padding: 48px 0 0;
    margin-top: 60px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-nav { gap: 12px; }
  .site-nav__link { font-size: 9px; letter-spacing: 0.8px; }
  .ab-pg { grid-template-columns: 1fr; }
}
