html, body {
  min-height: 100%;
  margin: 0;
}

@font-face {
  font-family: 'design';
  src: url('fonts/delight-bold.otf')
}

@font-face {
  font-family: 'design-notbold';
  src: url('fonts/delight-medium.otf')
}

/*.product-grid {*/
/*  margin-top: 15%;*/
/*}*/

.product-item, .product-item img, button {
  cursor: pointer;
}

.header {
  font-family: 'design';
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: white ;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0; /* Remove default body margin */
  background: #4f4f4f;
  z-index: -2;
}

.mobilewrapper {
  display: none;
  pointer-events: none;
  z-index: -1000;
}

.cart-icon {
  position: absolute;
  top: 10px; /* Adjust as needed */
  right: 10px; /* Adjust as needed */
  font-size: 30px;
  cursor: pointer;
}

#cart-icon:hover {
  color: #2792c6;
}

.drawer {
  position: fixed;
  font-family: design-notbold;
  color: black;
  top: 0;
  right: -420px; /* starts offscreen */
  width: 380px;
  height: 100vh;
  padding: 24px;
  z-index: 9999;
  overflow-y: auto;

  /* Frosted Glass */
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);

  /* subtle glass border */
  border-left: 1px solid rgba(255, 255, 255, 0.15);

  /* soft shadow for depth */
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.25);

  /* animation */
  transition: right 0.35s ease;
}


/* Drawer open state */
#cart-drawer.open {
  right: 0;
}

/* Glossy highlight */
#cart-drawer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
          to bottom,
          rgba(255, 255, 255, 0.25),
          rgba(255, 255, 255, 0)
  );
}

/* Cart items layout */
.cart-line {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.cart-line img {
  width: 70px;
  border-radius: 12px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 20px;
}

.drawer-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0;
}

#close-cart {
  position: fixed;
  left: 0;
  background: none;
  border: none;
  font-size: 40px;
  color: black;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: sans-serif;
}

#close-cart:hover {
  color: #2792c6;
}

#checkout-btn {
  width: 100%;
  padding: 16px 20px;
  margin-top: 25px;
  font-size: 18px;
  font-weight: 600;
  color: black;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Apple Glassy Button Base */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Subtle highlight (Apple glossy look) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
  0 6px 20px rgba(0, 0, 0, 0.25);

  cursor: pointer;
  transition: all 0.28s cubic-bezier(.25, .8, .25, 1);
}

/* Hover State: slight brighten & lift */
#checkout-btn:hover {
  color: #2792c6;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
  0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Pressed State: soft press-in */
#checkout-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
  0 4px 14px rgba(0, 0, 0, 0.2);
}

#quantity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dec {
  background: none;
  border: none;
  font-size: 20px;
  color: #4f4f4f;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dec:hover {
  color: black;
  cursor: pointer;
}

.inc {
  background: none;
  border: none;
  font-size: 20px;
  color: #4f4f4f;
  cursor: pointer;
  transition: background 0.2s ease;
}

.inc:hover {
  color: black;
}

main {
  flex-grow: 1; /* Allows the main content to take up available space */
}

footer {
  justify-content: flex-end;
  font-family: 'design-notbold';
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.product-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  background: transparent;
}

.modal-content {
  font-family: 'design-notbold';
  /* Set a semi-transparent background color using RGBA */
  background: rgba(255, 255, 255, 0.63); /* White with 15% opacity */

  /* Apply the backdrop-filter for blur and saturation */
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%); /* For Safari compatibility */

  /* Optional: Add a subtle border and box-shadow for depth */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#close-modal {
  position: fixed;
  right: 0;
  background: none;
  border: none;
  font-size: 40px;
  color: black;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-family: sans-serif;
}

#close-modal:hover {
  color: #2792c6;
}

.modal-backdrop.show {
  opacity: 0.05 !important;
}

.modal-img {
  width: 100%;
  border-radius: 10px;
  background: transparent;
}

@media screen and (min-width: 601px) {
  body {
    background-image: url("images/background.jpg");
  }
}

clearafter:after {
  display: table;
  clear: both;
  content: '';
}

h1 {
  color: black;
}

#logo {
  position: relative;
  margin: 0 auto;;
  z-index: 10;

  top: 10px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.description {
  padding: 10px
}

.bio {
  text-align: right;
  padding: 10px 0 10px 10px;
  line-height: .5vw;
  width: 75%;
  color: #000;
  font-size: 19px;
  letter-spacing: 0 !important;
}

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

figure {
  animation: wobble 5s linear infinite;
  transform-origin: center center;
  transform-style: preserve-3d;
  width: 30vw;
  position: relative;
  top: 0;
  left: 1vw;
  margin-bottom: 2vw;
  z-index: 100;
  pointer-events: none;

}

@keyframes wobble {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

h1.main-title, .main-title.h1 {
  position: absolute;
  font: 700 3.5vw helvetica, sans-serif;
  color: #000;
}

h1.main-title:nth-child(2), .main-title.h1:nth-child(2) {
  transform: translateZ(1px);
}
h1.main-title:nth-child(3), .main-title.h1:nth-child(3) {
  transform: translateZ(2px);
}
h1.main-title:nth-child(4), .main-title.h1:nth-child(4) {
  transform: translateZ(3px);
}
h1.main-title:nth-child(5), .main-title.h1:nth-child(5) {
  transform: translateZ(4px);
}
h1.main-title:nth-child(6), .main-title.h1:nth-child(6) {
  transform: translateZ(5px);
}
h1.main-title:nth-child(7), .main-title.h1:nth-child(7) {
  transform: translateZ(6px);
}
h1.main-title:nth-child(8), .main-title.h1:nth-child(8) {
  transform: translateZ(7px);
}
h1.main-title:nth-child(9), .main-title.h1:nth-child(9) {
  transform: translateZ(8px);
}
h1.main-title:nth-child(10), .main-title.h1:nth-child(10) {
  transform: translateZ(9px);
}
h1.main-title:nth-child(11), .main-title.h1:nth-child(11) {
  transform: translateZ(10px);
}
h1.main-title:nth-child(12), .main-title.h1:nth-child(12) {
  transform: translateZ(11px);
}
h1.main-title:nth-child(13), .main-title.h1:nth-child(13) {
  transform: translateZ(12px);
}
h1.main-title:nth-child(14), .main-title.h1:nth-child(14) {
  transform: translateZ(13px);
}
h1.main-title:nth-child(15), .main-title.h1:nth-child(15) {
  transform: translateZ(14px);
}
h1.main-title:nth-child(16), .main-title.h1:nth-child(16) {
  transform: translateZ(15px);
}
h1.main-title:nth-child(17), .main-title.h1:nth-child(17) {
  transform: translateZ(16px);
}
h1.main-title:nth-child(18), .main-title.h1:nth-child(18) {
  transform: translateZ(17px);
}

ul {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: 40px;
}

.email {
  margin-left: auto;
  margin-right: auto;
  margin-top: 10%;

  padding: 30px;
  text-align: center;
  font-family: 'design-notbold';
  font-size: 20px;

  width: 50vw; /*  normally 30 */
  /* Frosted Glass */
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  /* subtle glass border */
  border-left: 1px solid rgba(255, 255, 255, 0.15);

  /* soft shadow for depth */
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.25);

}

.email label {
  padding-bottom: 30px;
}

.email input {
  width: 40vw;

}
.email #sub {
  padding-top: 30px;
}

/*#submit {*/
/*  !*border-style: soli;*!*/
/*  background-color: white;*/
/*  border-radius:  20px;*/
/*  border-color: black;*/
/*  padding: 5px;*/
/*}*/
.products {
  display: grid;
  grid-template-columns:
          repeat(auto-fit, minmax(30rem, 2fr) );

}

.product {
  /*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);*/

  margin: auto;
  padding: 15px;
  text-align: center;
  justify-content: center;
  font-family: arial, cursive;
}

.product img {
  width: 100%;
}

.buy {
  margin: auto;
  padding: 15px;
  text-align: center;
  justify-content: center;
  font-family: arial, cursive;
}

.description {
  font-family: "Lora, serif";
  font-size: 19px;
  padding-top: 17px;
  padding-bottom: 17px;
  color: #000000;
}

.productpage img {
  width: 40%;
}

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

.shopify-buy-frame {
  margin: auto;
}

#sub {
  color: black;
  text-decoration: none;
  background: none;
  border: none;
}

#sub:hover {
  color: #2792c6;
}

#email {
  color: grey;
}

.product button {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}

.product button:hover {
  opacity: 0.7;
}

.rotate-45 {
  --tw-rotate: 45deg;
}

a:hover {
  color: #2792c6;
}

.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  text-align: center;
}

.splash.invis {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #2792c6;
  z-index: -100;
  text-align: center;
  display: none;
  transition: all 1s;
  pointer-events: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.enter {
  line-height: 120vh;
  color: black;
  font-family: 'design';
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.lds-ripple {
  display: inline-block;
  color: black;
  position: relative;
  top: 56vh;
  margin: auto;
  width: 80px;
  height: 80px;
}

.lds-ripple.invis {
  opacity: 0;
  z-index: -10;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid black;
  color: black;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

@media only screen and (max-width: 800px) {
  .splash {
    display: none;
  }

  body {
    overflow: scroll;
    background-attachment: scroll;
  }

  .email {
    margin-left: auto;
    margin-right: auto;
    margin-top: 15%;
    width: 80vw;
  }

  .header {
    padding-top: 20px;
  }

  .email input{
    width: 65vw;
  }

  h1.main-title, .main-title.h1 {
    position: absolute;
    display: none;
  }

  .bio {
    font-size: 3.2vw;
    margin-bottom: 1vh;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    line-height: 3.5vw !important;
  }

  .website-lock img {
    width: 100%;
  }

  .productpage img {
    width: 95%;
  }

  .poem {
    width: 75%;
    padding-left: 70px;
  }

  .shopify-buy-frame {
    margin: auto;
  }

  .footer {
    font-size: 3.2vw;
    color: black;
  }

  figure {
    /*width: 65vw;*/
    background: transparent;
  }
}