/* =========================
   General Styles
========================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #cfe9fd, #fde2f3, #ffe0b2);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    url("media/icons/croissant-0.png"),
    url("media/icons/croissant-90.png"),
    url("media/icons/croissant-180.png"),
    url("media/icons/croissant-270.png");
    background-repeat: repeat, repeat, repeat, repeat;
    background-size: 200px, 200px, 200px, 200px;
    background-position:
      0 0,
      100px 0,
      0 100px,
      100px 100px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none; 
}

h4 {
  color: #666; 
  font-weight: 500;
}

h4 a {
  font-weight: 700;
}

.amazon-link {
  color: #ff5c5c;
}

.etsy-link {
  color: #ff9b30;
}

.container {

  flex: 1;
  display: flex;
  margin: 0 auto;
  margin-top: 10px;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width:380px;
}

.container-book {
  padding: 20px;
  border: 1px white solid;
  border-radius: 10px;
  background: rgb(255 255 255 / 15%);
  backdrop-filter: blur(3px);
  box-shadow: 4px  4px 8px rgba(0,0,0,0.05),

    /* внутренняя тень */
    inset -2px -2px 10px rgba(0, 0, 0, 0.05),
    inset  2px  2px 4px rgba(255, 255, 255, 0.1);
  }

/* =========================
   Headings
========================= */
h1 {
  font-size: 24px;
  font-weight: 900;
  /* color: #ff7b54; */
  margin: 10px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.free {
  color: #398069;
}

.xmas {
  color: #cd4033;
} 

.valentine {
  color: #9e4d99;
}

.cherry {
  color: #de3163;
}

.azulejo {
  color: #b32d71;
}

.breakfast {
    color: orange;
}

.geometric {
  color: #8f7dff;
}

.tiles {
  color: #0055AB;
}

.cupcake {
  color: #c75a3a;
}

.optical {
  color: #639b76;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  margin: 15px 0;
  margin-bottom: 0px;
  text-align: center;
  letter-spacing: 0.5px;
}

.book-details {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  margin: 6px 0 4px 0;
  text-align: center;
}

/* =========================
   Site Header
========================= */
.site-header {
  width: 100%;
  padding: 15px 0;
  background: rgba(207, 233, 253, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: center;
  align-items: center;

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Универсальный контейнер — и для <a>, и для <div> */
.header-link {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none; 
  color: inherit;
}

/* Если это <div>, который НЕ ссылка */
.header-link.no-link {
  cursor: default;
  pointer-events: none;     /* чтобы не кликалось */
}

.site-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  width: 32px;
  height: auto;
}


/* =========================
   Book Cover
========================= */
.book-cover img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0 10px 0;
  transition: transform 0.3s ease;
}

.book-cover img:hover {
  transform: scale(1.05);
}

.img-transparent {
  opacity: 0.7; 
}

/* =========================
  BUY Buttons (home page)
========================= */
.buy-btn {
  width: 100%;
  box-sizing: border-box;

}


/* =========================
   Glass Buttons (Back, Buy)
========================= */
.glass-btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =========================
   Colored Glass Buttons (Region Buttons)
========================= */

.region-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 0 10px 0;
  box-sizing: border-box;
}

.region-btn {
  display: block;
  padding: 6px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  /* стеклянный эффект */
  background: rgba(255, 145, 145, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* цветной акцент */
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 8px rgba(255, 140, 100, 0.25);

  color: #333;
  transition: all 0.25s ease;
}

.region-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 16px rgba(255, 140, 100, 0.35);
}

/* =========================
   Social Icons
========================= */
.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 20px 0;
  margin: 20px 0 40px 0;
}

.socials a img {
  width: 40px;
  height: 40px;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.socials a img:hover {
  filter: grayscale(0%);
}
