@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #28231f;
  background: #fbf8f3;
  font-family: "DM Sans", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("D:\pink petals\Logo.jpeg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    opacity: 0.20;

    pointer-events: none;
    z-index: -1;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, 0.96);
  border-bottom: 1px solid #e8dfd5;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 5%;
  max-width: 1450px;
  margin: auto;
}
.logo {
  font-family: "Playfair Display";
  font-size: 10px;
  letter-spacing: 2px;
  color: #302720;
  text-decoration: none;
  white-space: nowrap;
}
.logo span {
  display: block;
  font: 600 8px "DM Sans";
  letter-spacing: 4px;
  text-align: center;
  margin-top: 2px;
}
.logo img {
    width: 60px;
    height: auto;
    display: block;
}
nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
nav a {
  color: #4c443e;
  text-decoration: none;
  font-size: 13px;
}
nav a:hover {
  color: #9a6b36;
}
.actions {
  display: flex;
  gap: 8px;
}
.actions button {
  border: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #3e3630;
}
.actions b {
  font-size: 10px;
  background: #302720;
  color: #fff;
  border-radius: 20px;
  padding: 3px 6px;
}
.search-box {
  padding: 10px 5%;
  border-top: 1px solid #e8dfd5;
}
.search-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9cec2;
  background: white;
}
.hidden {
  display: none !important;
}
.hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  padding: 70px 8%;
  background: linear-gradient(90deg, #f0e7dc 0%, #f7f1e9 52%, #e6d9cb 100%);
}
.hero > div {
  max-width: 560px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #9a6b36;
  font-weight: 600;
}
.hero h1 {
  font: 500 64px/1.05 "Playfair Display";
  margin: 18px 0;
}
.hero h1 em {
  font-style: italic;
}
.hero p:not(.eyebrow) {
  line-height: 1.8;
  color: #675e57;
  max-width: 500px;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  background: #302720;
  color: white;
  padding: 14px 23px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.section {
  padding: 75px 7%;
  max-width: 1450px;
  margin: auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.section h2,
.info h2 {
  font: 500 42px "Playfair Display";
  margin: 5px 0;
}
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.categories button {
  height: 150px;
  border: 1px solid #ded4ca;
  background: #eee6dd;
  font: 500 23px "Playfair Display";
  cursor: pointer;
}
.categories button:hover {
  background: #e4d7c9;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product {
  background: #fff;
  border: 1px solid #ece5dd;
}
.product-img {
  height: 265px;
  background: linear-gradient(135deg, #eee4d9, #d8c6b3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
}

.product-img {
    height: 265px;
    overflow: hidden;
    background: #eee4d9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-body {
  padding: 18px;
}
.product-body h3 {
  font: 500 22px "Playfair Display";
  margin: 0 0 6px;
}
.meta {
  font-size: 12px;
  color: #81776f;
}
.price {
  font-weight: 600;
  margin: 13px 0;
}
.add {
  width: 100%;
  padding: 11px;
  background: #302720;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.info {
  max-width: 900px;
  text-align: center;
}
.info p:last-child {
  line-height: 1.8;
  color: #675e57;
}
select {
  padding: 10px;
  border: 1px solid #d9cec2;
  background: #fff;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 29;
}
.sidepanel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(430px, 100%);
  background: #fbf8f3;
  z-index: 30;
  padding: 45px 30px;
  transform: translateX(100%);
  transition: 0.25s;
  overflow: auto;
}
.sidepanel.open {
  transform: translateX(0);
}
.close {
  position: absolute;
  right: 20px;
  top: 16px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
}
.cart-row {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e3dcd5;
}
.cart-row .thumb {
  width: 65px;
  height: 65px;
  background: #e8ded3;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.cart-row h4 {
  margin: 0 0 6px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 18px;
}
.full {
  width: 100%;
  margin-top: 0;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-card {
  position: relative;
  background: #fbf8f3;
  width: min(430px, 100%);
  padding: 35px;
}
.modal-card h2 {
  font: 500 34px "Playfair Display";
}
.modal-card input {
  width: 100%;
  padding: 13px;
  margin: 7px 0;
  border: 1px solid #d8cec4;
  background: white;
}
.modal-card small {
  display: block;
  margin-top: 14px;
  color: #81776f;
  line-height: 1.5;
}
footer {
  text-align: center;
  padding: 35px;
  border-top: 1px solid #e8dfd5;
  color: #82786f;
  font-size: 12px;
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .topbar {
    justify-content: space-between;
  }
  .hero h1 {
    font-size: 48px;
  }
  .categories,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .hero {
    min-height: 500px;
    padding: 50px 7%;
  }
  .hero h1 {
    font-size: 42px;
  }
  .categories,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 55px 5%;
  }
}
