:root {
  --ink: #211b1d;
  --muted: #74696d;
  --cream: #fffaf7;
  --rose: #e8b8bd;
  --rose2: #f7e4e3;
  --gold: #b88b54;
  --white: #fff;
  --line: #eadfdd;
  --shadow: 0 18px 50px rgba(55, 31, 35, .10);
  --shadow-soft: 0 8px 28px rgba(40, 25, 28, .07);
  --radius: 22px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 139, 84, .35);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
}

.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  line-height: 1.35;
  padding: 8px 16px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 247, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navin {
  position: relative;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .04em;
  white-space: nowrap;
}

.logo span {
  color: var(--gold);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  font-size: .92rem;
}

.navlinks a {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--gold);
}

.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-rose {
  background: var(--rose);
  color: var(--ink);
}

.btn-rose:hover {
  background: #dfabb1;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.mobile-menu {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1rem;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 45px;
  padding: 60px 0;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 600px;
}

.hero-copy .eyebrow,
.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .75rem;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin: 0 0 18px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 550px;
}

.hero-img {
  width: 100%;
  height: 580px;
  min-width: 0;
  object-fit: cover;
  border-radius: 38% 38% 18% 18%;
  box-shadow: var(--shadow);
}

.about-img {
  height: 500px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.section {
  padding: 85px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head > * {
  min-width: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 500px;
  margin: 0;
}

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

.card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  background: var(--rose2);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-top: 7px;
}

.price {
  font-weight: 800;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.card-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 12px;
}

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

.cat {
  position: relative;
  min-width: 0;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.cat:hover img {
  transform: scale(1.035);
}

.cat div {
  position: absolute;
  inset: auto 18px 18px;
  background: rgba(255, 255, 255, .91);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 18px;
  border-radius: 18px;
}

.cat h3 {
  margin-bottom: 6px;
}

.banner {
  background: var(--rose2);
  border-radius: 35px;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.banner > * {
  min-width: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

footer {
  background: var(--ink);
  color: #fff;
  padding: 55px 0 25px;
}

.footergrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footergrid > * {
  min-width: 0;
}

.footergrid a {
  display: block;
  color: #d9ced0;
  margin: 8px 0;
}

.footergrid a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid #493e40;
  margin-top: 35px;
  padding-top: 20px;
  color: #bdb1b4;
  font-size: .85rem;
}

.pagehead {
  padding: 75px 0 45px;
  background: var(--rose2);
}

.pagehead h1 {
  max-width: 900px;
}

.pagehead p {
  color: var(--muted);
  max-width: 650px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.contactgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}

.contactgrid > * {
  min-width: 0;
}

.contactbox {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

label {
  display: inline-block;
  font-weight: 700;
  margin-top: 2px;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  margin: 6px 0 14px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.cartbar {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 14, .55);
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modalbox {
  background: #fff;
  border-radius: 25px;
  padding: 28px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 90;
}

@media (max-width: 980px) {
  .navlinks {
    gap: 14px;
    font-size: .86rem;
  }

  .navin {
    gap: 12px;
  }

  .logo {
    font-size: 1.34rem;
  }
}

@media (max-width: 800px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(100% - 32px, 720px);
  }

  .topbar {
    font-size: .75rem;
    padding: 7px 12px;
  }

  .navin {
    gap: 8px;
  }

  .logo {
    margin-right: auto;
    font-size: 1.18rem;
  }

  .mobile-menu {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: .82rem;
  }

  .nav-bag {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: .82rem;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 250, 247, .99);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 35px rgba(40, 25, 28, .12);
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlinks a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .navlinks a:hover,
  .navlinks a.active {
    background: var(--rose2);
  }

  .navlinks a.active::after {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 54px;
  }

  .hero-img {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 500px;
    border-radius: 28px;
  }

  .about-img {
    order: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 11vw, 4.4rem);
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-head p {
    max-width: 620px;
  }

  .grid,
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footergrid,
  .contactgrid {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 34px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pagehead {
    padding: 58px 0 38px;
  }

  .pagehead h1 {
    font-size: clamp(2.55rem, 10vw, 4rem);
  }

  .product-img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .grid,
  .categories {
    grid-template-columns: 1fr;
  }

  .cat {
    height: min(420px, 110vw);
  }

  .product-img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar {
    font-size: .7rem;
  }

  .navin {
    min-height: 64px;
  }

  .logo {
    font-size: 1rem;
    line-height: .98;
    white-space: normal;
    width: 86px;
  }

  .logo span {
    display: block;
  }

  .mobile-menu,
  .nav-bag {
    padding: 9px 12px;
  }

  .menu-label {
    display: none;
  }

  .menu-icon {
    display: inline;
  }

  .hero {
    gap: 24px;
    padding-top: 22px;
  }

  .hero-img {
    aspect-ratio: 1 / .9;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.5vw, 3.15rem);
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 1rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .actions .btn {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .banner {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature,
  .contactbox {
    padding: 22px;
  }

  .cat {
    height: 350px;
  }

  .cat div {
    inset: auto 14px 14px;
    padding: 15px;
  }

  .card-body {
    padding: 18px;
  }

  .pagehead {
    padding: 46px 0 32px;
  }

  .modal {
    align-items: flex-end;
    padding: 10px;
  }

  .modalbox {
    border-radius: 22px;
    padding: 22px 18px;
    max-height: 82vh;
  }

  .cart-item {
    align-items: flex-start;
  }

  .cart-item .btn {
    padding: 9px 12px;
    font-size: .82rem;
  }

  .cartbar {
    right: 12px;
    bottom: 12px;
    padding: 11px 15px;
    font-size: .88rem;
  }

  footer {
    padding-top: 44px;
    padding-bottom: 76px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .logo {
    width: 76px;
    font-size: .9rem;
  }

  .mobile-menu,
  .nav-bag {
    padding: 8px 10px;
    font-size: .76rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   Princess Beauty - mobile interaction hardening
   Menu and bag opening work with CSS/HTML even if JS is cached
   or temporarily fails to load.
   ========================================================= */

.nav-bag,
.cartbar {
  white-space: nowrap;
  text-decoration: none;
}

.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 .35em;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  line-height: 1;
  font-size: .82em;
}

.mobile-nav {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.mobile-nav summary {
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] .menu-icon {
  transform: rotate(90deg);
}

.menu-icon {
  display: inline-block;
  transition: transform .18s ease;
}

.mobile-nav-panel {
  position: fixed;
  left: 14px;
  right: 14px;
  top: calc(var(--topbar-height, 34px) + var(--nav-height, 68px) + 8px);
  z-index: 100;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255,250,247,.995);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(40,25,28,.18);
}

.mobile-nav-panel a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus,
.mobile-nav-panel a.active {
  background: var(--rose2);
  color: var(--gold);
}

/* CSS-only cart opening fallback using :target */
.modal:target,
.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.modalbox {
  position: relative;
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
}

.checkout-btn {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 800px) {
  .navlinks {
    display: none !important;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-menu {
    display: inline-flex;
    min-height: 42px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .nav-bag {
    min-height: 42px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .navin {
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .navin {
    gap: 7px;
  }

  .logo {
    width: auto;
    max-width: 105px;
    font-size: .92rem;
    white-space: normal;
  }

  .logo span {
    display: block;
  }

  .mobile-menu {
    padding: 9px 11px;
    font-size: .8rem;
  }

  .mobile-menu > span:first-child {
    display: inline;
  }

  .nav-bag {
    padding: 9px 11px;
    font-size: .8rem;
  }

  .bag-count {
    min-width: 1.45em;
    height: 1.45em;
  }

  .cartbar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .logo {
    max-width: 90px;
    font-size: .82rem;
  }

  .mobile-menu > span:first-child {
    display: none;
  }

  .mobile-menu,
  .nav-bag {
    padding: 8px 9px;
  }
}
