/* --- MOBILE OPTIMIZATIONS --- */
/* Hide mobile toggle by default; show only on small screens */
.mobile_nav_toggle{
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .site_header {
    padding-left: 8px;
    padding-right: 8px;
  }
  /* Keep header row layout on mobile: brand left, controls right */
  .header_inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }
  .brand {
    gap: 8px;
  }
  /* Hide the tagline to reduce header height */
  .brand_tagline { display: none; }

  /* Hide full nav on small screens; use burger to open it */
  .header_actions{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  /* Animated mobile nav: collapsed by default, expands when .open is applied */
  .nav {
    position: absolute;
    top: 66px;
    right: 8px;
    background: var(--light-pink);
    flex-direction: column;
    gap: 0;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
    display: flex;
  }
  .nav a{ text-align: center; padding: 10px 12px; }
  .nav.open{
    max-height: 480px; /* big enough to show all links */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Show the mobile burger and push it to the right */
  .mobile_nav_toggle{
    display: inline-flex;
    background: transparent;
    border: none;
    font-size: 24px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  /* Compact cart button: show only icon and count */
  .cart_button{
    margin-left: 8px;
    padding: 8px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
  }
  .cart_button .cart_text{ display: none; }
  .cart_button .cart_icon{ font-size: 18px; line-height: 1; }
  .cart_count{
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    margin-left: 0;
    padding: 0 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .hero_feature {
    margin-top: 18px;
  }
  .gallery_grid, .product_grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .two_col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer_inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-left: 4vw;
    padding-right: 4vw;
    font-size: 13px;
  }
  /* Centered logo image on main page */
  .mainpage-logo {
    max-width: 90vw !important;
    width: 90vw !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Center action groups (hero buttons, filters, etc.) on mobile */
  .hero_actions { justify-content: center; }
  .filters { justify-content: center; }
  .section_header { flex-direction: column; align-items: center; gap: 8px; }
  .section_header > div,
  .section_header .search_wrap { width: 100%; }
  .section_header > div { text-align: center; }
  /* Ensure the search input centers and doesn't overflow */
  .search_wrap { display: flex; justify-content: center; }
  .search_wrap .search_input { width: 100%; max-width: 420px; }
  .brand_text { text-align: center; }
}
:root{
  --bg: #ffffff;
  --light-pink: #ffe6f3;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --card: rgba(255,255,255,0.92);
  --border: rgba(0,0,0,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,0.10);

  --pink: #ffb3de;
  --pink_dark: #ff7fc7;
  --chip: rgba(255,179,222,0.14);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);

  /* Use background image */
  background-image: url("../../images/hearts_bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}


.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site_header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: #ffe6f3;
  border-bottom: 1px solid var(--border);
}

.header_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand_mark{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pink);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(255,90,165,0.22);
}

.brand_text{
  display: grid;
  line-height: 1.1;
}

.brand_name{
  font-weight: 800;
}

.brand_tagline{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--light-pink);
  border-radius: 12px;
  padding: 4px 12px;
}

.nav a{
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(0,0,0,0.04);
}

.cart_button{
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.cart_count{
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.site_main{
  position: relative;
  padding-bottom: 40px;
}

.section{
  padding: 34px 0;
}

.content_card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

h1{ margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.5px; }
h2{ margin: 0; font-size: 28px; letter-spacing: -0.3px; }
.h3{ margin: 0; font-size: 18px; }
.h4{ margin: 0 0 10px; font-size: 16px; }

.accent{ color: var(--pink_dark); }

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero_actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.button.primary{
  background: var(--pink);
  border-color: rgba(0,0,0,0);
  color: white;
}

.button.primary:hover{ background: var(--pink_dark); }
.button:hover{ background: rgba(0,0,0,0.04); }

.small_note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tiny{
  color: var(--muted);
  font-size: 12px;
}

.feature_box{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.75);
}

.feature_list{
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  margin-right: 8px;
}

.text_link{
  color: var(--pink_dark);
  font-weight: 800;
  text-decoration: none;
}

.text_link:hover{ text-decoration: underline; }

.section_header{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.subtext{
  margin: 8px 0 0;
  color: var(--muted);
}

.search_wrap{
  min-width: min(360px, 100%);
}

.search_input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  outline: none;
}

.search_input:focus{
  border-color: rgba(255,90,165,0.45);
  box-shadow: 0 0 0 4px rgba(255,90,165,0.14);
}

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.chip{
  border: 1px solid rgba(255,90,165,0.22);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active{
  background: var(--pink);
  color: white;
  border-color: rgba(0,0,0,0);
}

.product_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product_card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
}


.product_img {
  height: 170px;
  background: rgba(255,90,165,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  overflow: hidden;
}

.product_img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: box-shadow 0.2s;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .product_img {
    height: 110px;
  }
}

/* Modal for enlarged image */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal_img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: #fff;
  padding: 8px;
}
.modal_close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.product_body{
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product_title{
  margin: 0;
  font-size: 16px;
  font-weight:x;
  font-weight: 900;
}

.product_meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
}

.price{
  font-weight: 900;
  color: var(--pink_dark);
}

.product_actions{
  display: flex;
  gap: 10px;
}

.callout{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,90,165,0.45);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
}

.gallery_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery_tile{
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.two_col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
}

.form{
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.form_row{
  display: grid;
  gap: 8px;
}

label{
  font-weight: 900;
}

input, textarea{
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  outline: none;
  font: inherit;
}

textarea{ resize: vertical; }

input:focus, textarea:focus{
  border-color: rgba(255,90,165,0.45);
  box-shadow: 0 0 0 4px rgba(255,90,165,0.14);
}

.checkbox_grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  font-weight: 800;
  color: var(--muted);
}


.site_footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  padding: 0;
  z-index: 100;
}

.footer_inner {
  width: 100vw;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 6vw 16px 6vw;
  font-size: 15px;
  color: var(--muted);
  box-sizing: border-box;
}



@media (max-width: 600px) {
  .footer_inner {
    padding-left: 4vw;
    padding-right: 4vw;
    font-size: 14px;
  }
}

.footer_inner strong {
  font-size: 16px;
  color: var(--ink);
}

.footer_inner .tiny {
  font-size: 13px;
  color: var(--muted);
}

/* About page: center main text and constrain content for readability */
body.about .content_card {
  text-align: center;
}
/* On small screens stack the two-column area; on desktop keep the grid layout */
@media (max-width: 900px) {
  body.about .two_col { display: block; }
  body.about .two_col > div {
    max-width: 760px;
    margin: 0 auto;
  }
}
@media (min-width: 901px) {
  /* Restore default grid behavior on larger screens and remove max-width constraint */
  body.about .two_col > div { max-width: none; margin: 0; }
  /* If the two_col has only one child, center it across the grid on desktop */
  body.about .two_col > div:only-child {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto;
  }
}
/* Center bullet list visually but keep items left-aligned for readability */
body.about .bullets {
  display: inline-block;
  text-align: left;
  margin: 12px auto 0;
}

/* Ensure the intro subtext under the About hero is centered and constrained */
body.about .section_header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
body.about .section_header .subtext {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* About hero: big heading and centered logo */
body.about .about_hero h1,
body.about .about_hero h2{
  margin: 0 0 8px;
  font-size: 36px;
  color: var(--pink_dark);
}
/* Ensure About page heading uses the same pink as other accents */
body.about .about_hero h2,
body.about .about_hero h1{
  color: var(--pink_dark);
}
body.about .about_logo{
  padding: 0; /* remove extra padding around the logo container */
  margin: 0 auto;
  display: block;
}
body.about .about_logo img{
  width: 320px;
  max-width: 90vw;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px; /* smaller gap below image */
  padding: 0; /* ensure no internal padding */
}

@media (max-width: 600px) {
  body.about .about_logo img{
    width: 84vw;
    max-width: 360px;
  }
}

body {
  padding-bottom: 70px; /* Prevent content from being hidden behind the fixed footer */
}

.sr_only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* CART DRAWER */
.cart_drawer{
  width: min(520px, calc(100% - 24px));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0;
}

.cart_drawer::backdrop{
  background: rgba(0,0,0,0.25);
}

.cart_header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
}

.icon_button{
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

.cart_body{
  padding: 14px;
  background: rgba(255,255,255,0.92);
}

.cart_items{
  display: grid;
  gap: 10px;
}

.cart_item{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cart_item_title{
  font-weight: 900;
}

.cart_item_meta{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.qty_controls{
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty_button{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-weight: 900;
}

.cart_footer{
  padding: 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  display: grid;
  gap: 12px;
}

.cart_total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.cart_actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Responsive */

/* Responsive Enhancements */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .product_grid { grid-template-columns: repeat(2, 1fr); }
  .gallery_grid { grid-template-columns: repeat(2, 1fr); }
  .two_col { grid-template-columns: 1fr; }
  .nav {
    position: absolute;
    top: 60px;
    right: 16px;
    background: var(--light-pink);
    flex-direction: column;
    gap: 0;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 220ms ease, opacity 200ms ease, transform 200ms ease;
    display: flex;
  }
  .nav a{ text-align: center; padding: 10px 12px; }
  .nav.open{
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile_nav_toggle {
    display: inline-flex;
  }
  .header_inner {
    gap: 8px;
  }
}

/* Desktop header layout: place brand, nav, and actions in three columns so cart sits at the far right */
@media (min-width: 901px) {
  .header_inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .nav {
    display: flex;
    gap: 14px;
    justify-self: start; /* keep links starting after the brand */
  }

  .header_actions{
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end; /* push actions (cart) to far right */
  }

  /* hide the mobile toggle on desktop */
  .mobile_nav_toggle { display: none; }
}

/* Desktop footer: center the footer content to match page container */
@media (min-width: 901px) {
  .footer_inner {
    width: min(1100px, calc(100% - 32px));
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: center; /* center the single tiny copyright */
  }
  .site_footer {
    width: 100%; /* keep footer bar full-width but center its inner content */
    left: 0;
  }
  .footer_inner .tiny { text-align: center; }
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 6px;
  }
  .content_card {
    padding: 10px;
    border-radius: 14px;
  }
  .section {
    padding: 18px 0;
  }
  .hero_actions {
    gap: 6px;
  }
  .brand_mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .brand_name {
    font-size: 18px;
  }
  .brand_tagline {
    font-size: 10px;
  }
  .cart_button {
    padding: 8px 10px;
    font-size: 15px;
  }
  .cart_count {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .product_img, .product_img img {
    height: 110px;
  }
  .gallery_tile {
    min-height: 80px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .product_grid { grid-template-columns: 1fr; }
  .gallery_grid { grid-template-columns: 1fr; }
  .search_wrap { min-width: 0; }
  .site_header { padding: 0 2px; }
  .header_inner { flex-wrap: wrap; gap: 4px; }
  .cart_drawer { width: 98vw; min-width: unset; }
}

/* Hamburger menu styles */
.mobile_nav_toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--pink_dark);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .mobile_nav_toggle { display: inline-flex; }
}
