
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --color-primary: #e9b7c6;
  --color-secondary: #6b4e57;
  --color-background: #fffaf7;
  --color-text: #3a2f33;
  --color-accent: #d98fa8;
}
body{margin:0;font-family:var(--font-body);background:var(--color-background);color:var(--color-text)}
h1,h2,h3{font-family:var(--font-heading)}
nav{display:flex;justify-content:center;align-items:center;padding:5px 0px 20px 0px;background:#E6E6E6}
nav ul{list-style:none;display:flex;gap:20px}
nav a{text-decoration:none;color:var(--color-text)}
nav a:hover{color:var(--color-accent)}
.top-image{
  display: block;
  margin: auto;
  width: 20%;}
.top-text{
  display: block;
  margin: auto;
  width: 25%;}
.top{background:#E6E6E6}
.hero img,.sub-hero img{width:100%;display:block}
.hero-text{position:absolute;bottom:60px;left:60px;color:white}
.content{max-width:900px;margin:auto;padding:0px 40px}
.products{padding:40px 40px 0px 40px;max-width:1200px;margin:auto}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:30px}
.product-card{background:white;border:1px solid #eee;text-align:center;color:var(--color-text);text-decoration:none}
.product-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.price{font-weight:600;color:var(--color-secondary)}
.product-page{max-width:1000px;margin:auto;padding:80px 40px;display:grid;grid-template-columns:1fr 1fr;gap:60px}
.product-page img{width:100%}
.buy-button{background:var(--color-primary);color:white;border:none;padding:14px 30px;margin-top:20px}
footer{background:#f3eeeb;text-align:center;padding:40px 20px;font-size:0.9rem}
footer nav{justify-content:center;margin-bottom:20px}

a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.nav-right { margin-left: auto; }

.icon {
  width: 20px;
  height: 20px;
}

/* Hamburger */

.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  align-items: center; /* centers bars */
}


.hamburger span {
  width: 22px;
  height: 2px;
  background: #000;
}

/* Fullscreen mobile menu */
.nav-links{display:flex;gap:24px;list-style:none;margin:0;padding:0}

@media(max-width:768px){
  .hamburger{display:flex}
  .nav-links{
    position:fixed;
    inset:0;
    background:#fff;
    flex-direction:column;
    padding:80px 30px;
    display:none;
    z-index:1000;
    animation:slideDown .25s ease;
  }
  .nav-links.open{display:flex}

.nav-links li a {
  font-size: 18px; /* previously ~18px */
  padding: 10px 0;
}

  .site-nav {
    display: flex;
    justify-content: center; /* ✅ centers hamburger horizontally */
    align-items: center;
  }


}


/* Slide animation */
@keyframes slideDown{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}

/* Lock scroll */
body.menu-open{overflow:hidden}
/* CART BUTTON */

.cart-button {
  position: relative;
  display: flex;
}


.cart-button img,
.cart-button svg {
  width: 20px;
  height: 20px;
}

/* CART COUNT BADGE */
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #000;
  color: #fff;
  font-size: 11px;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
}

/* Product hover image fade (Shopify-style) */

.product-card {
  text-align: center;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Default image visible */
.product-image .img-default {
  opacity: 1;
  z-index: 1;
}

/* Hover image hidden */
.product-image .img-hover {
  opacity: 0;
  z-index: 2;
}

/* Fade effect on hover */
.product-card:hover .img-default {
  opacity: 0;
}

.product-card:hover .img-hover {
  opacity: 1;
}

/* Mobile safety (optional – prevents weird behavior) */
@media (hover: none) {
  .product-image .img-hover {
    display: none;
  }
}


/* Footer */
.site-footer {
  background: #f6f4f2;
  padding: 24px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
padding: 10px;
}

.footer-nav a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: #666;
}

/* Mobile footer spacing */
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}
/* =========================
   Product Page Layout
   ========================= */

.product-layout {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* Images */
.product-main-image {
  width: 100%;
  display: block;
}
.cart-buttons{
  height: 35px;
width: 35px;
}
.product-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.product-thumbnails img {
  width: 80px;
  cursor: pointer;
}

/* Details */
.product-details h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-price {
  font-size: 18px;
  margin-bottom: 24px;
}

/* Quantity */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  background: #eee;
  border: none;
  cursor: pointer;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
}

/* Add to cart */
.add-to-cart {
  width: 100%;
  padding: 14px;
  background: black;
  color: white;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 24px;
}

/* Description */
.product-description {
  font-size: 16px;
  color: #444;
}

/* =========================
   Related Products
   ========================= */

.related-products {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 24px;
}

.related-products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.related-card {
  text-align: center;
  text-decoration: none;
  color: black;
}

.related-card img {
  width: 100%;
}

.related-card h3 {
  margin: 12px 0 4px;
  font-size: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* Active thumbnail */
.product-thumbnails img.active {
  outline: 2px solid black;
}

/* Thumbnails hover */
.product-thumbnails img {
  transition: opacity 0.2s ease;
}

.product-thumbnails img:hover {
  opacity: 0.7;
}
/* =========================
   Cart Drawer
   ========================= */


.cart-open {
  overflow: hidden;
}



.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);

  /* ✅ hidden by default */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;

  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}



.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;

  background: #fff;

  /* ✅ hidden off-screen */
  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1001;

display: flex;
flex-direction: column;

}



.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}



.cart-open .cart-drawer {
  transform: translateX(0);
}




.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.cart-close {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
}

/* Items */
.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-items {
  max-height: 320px;
  overflow-y: auto;
}



.cart-item {
  display: grid;
  grid-template-columns: auto auto auto auto 1fr auto;
  align-items: center;
  gap: 8px;
}


/* Footer */
.cart-footer {
  border-top: 1px solid #eee;
  padding: 20px;
  background: #fff;
}

.checkout-btn {
  appearance: none;
  backface-visibility: hidden;
  background-color: #27ae60;
  border-radius: 8px;
  border-style: none;
  box-shadow: rgba(39, 174, 96, .15) 0 4px 9px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
  outline: none;
  overflow: hidden;
  padding: 13px 20px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
  transition: all .3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.checkout-btn:hover {
  background-color: #1e8449;
  opacity: 1;
  transform: translateY(0);
  transition-duration: .35s;
}

.checkout-btn:active {
  transform: translateY(2px);
  transition-duration: .35s;
}

.checkout-btn:hover {
  box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
}


#navCartBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: transparent;       /* ✅ clear background */
  border: none;
  cursor: pointer;

  position: relative;
  line-height: 1;
}

/* Cart icon */
#navCartBtn img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Quantity badge */
#cartCount {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 18px;
  height: 18px;

  background: #000;
  color: #fff;

  font-size: 11px;
  font-weight: 600;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

/* Hover & focus states (Shopify‑style) */
#navCartBtn:hover {
  opacity: 0.75;
}

#navCartBtn:focus {
  outline: none;
}

#navCartBtn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Mobile touch target */
@media (max-width: 768px) {
  #navCartBtn {
    padding: 10px;
  }
}


@media (max-width: 768px) {

  .cart-drawer {
    width: 100vw;          /* ✅ full screen */
    max-width: 100vw;
    right: 0;
    box-sizing: border-box;

    /* keep slide-in behavior */
    transform: translateX(100%);
  }


/* Overlay */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.3s;z-index:998}

/* Drawer base */
.drawer{position:fixed;top:0;right:0;width:360px;max-width:100vw;height:100vh;background:#fff;transform:translateX(100%);transition:transform .3s ease;z-index:999;overflow-y:auto}

.drawer.open{transform:translateX(0)}
.overlay.active{opacity:1;pointer-events:auto}

.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #eee}
.drawer-items{padding:16px}
.drawer-item{display:flex;justify-content:space-between;margin-bottom:12px}
.drawer-footer{padding:16px;border-top:1px solid #eee}

.menu-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}


@media(max-width:768px){
.drawer{width:100vw}
}

body{margin:0;font-family:Arial,sans-serif}
#navCartBtn,#hamburger{background:none;border:none;font-size:20px;cursor:pointer}

/* Overlay */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:.3s;z-index:998}

/* Drawer base */
.drawer{position:fixed;top:0;right:0;width:360px;max-width:100vw;height:100vh;background:#fff;transform:translateX(100%);transition:transform .3s ease;z-index:999;overflow-y:auto}

.drawer.open{transform:translateX(0)}
.overlay.active{opacity:1;pointer-events:auto}

.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #eee}
.drawer-items{padding:16px}
.drawer-item{display:flex;justify-content:space-between;margin-bottom:12px}
.drawer-footer{padding:16px;border-top:1px solid #eee}

@media(max-width:768px){
.drawer{width:100vw}
}


.product-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  margin-top: 12px;
}

body.cart-open {
  position: fixed;
  width: 100%;
}


