:root {
    --gold: #d4af37;
    --gold-dark: #b48c29;
    --dark: #111;
    --light: #fff;
    --bg: #f9f9f9;
    --radius: 1rem;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: linear-gradient(-45deg, #f9e7d9, #e6e6fa, #ffe4e1, #f6f6f6);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    opacity: 90%;
    z-index: 999;
  }

  @keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


  .logo {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark);
  }

  .logo span {
    color: var(--gold);
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 2.1rem;
  }

  nav a {
    text-decoration: none;
    font-weight: 550;
    color: var(--dark);
    position: relative;
  }

  nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
  }

  nav a:hover::after {
    width: 100%;
  }

  .header-icons {
    display: flex;
    gap: 1.2rem;
    font-size: 1.2rem;
    align-items: center;
  }

  .header-icons i {
    cursor: pointer;
    transition: color 0.3s;
  }

  .header-icons i:hover {
    color: var(--gold);
  }

  .cart-count {
    position: relative;
  }

  .cart-count::after {
    content: attr(data-count);
    position: absolute;
    top: -0.5rem;
    right: -0.7rem;
    background: var(--gold);
    color: var(--light);
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
  }

  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 80px;
    position: relative;
  }
.hero {
    position: relative;              /* make it a containing block */
    overflow: hidden;                /* hide any overflow from the iframe */
  }
  
  .hero-bg {
    position: absolute;
    inset: 0;                        /* top:0; right:0; bottom:0; left:0; */
    z-index: 0;                      /* behind everything */
    pointer-events: none;            /* allow clicks/scroll on content */
  }
  
  .hero-bg iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  #hero-3d {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
  }
  

  .hero-content {
    width: 48%;
    z-index: 2;
  }

  .hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f9f9f9;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .btn-primary {
    padding: 0.9rem 2.2rem;
    background: var(--gold);
    color: var(--light);
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  }

  .btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.45);
  }

  #hero-3d {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
  }

  .section {
    padding: 5rem 5%;
  }

  .section-title {
    font-family: "Playfair Display", serif;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 0.6rem;
  }

  .section-subtitle {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    color: #666;
    line-height: 1.6;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }

  .category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.35s, box-shadow 0.35s;
  }

  .category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

  .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
  }

  .category-card:hover img {
    transform: scale(1.08);
  }

  .category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    color: var(--light);
  }

  .category-title {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 fixed columns */
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
  }

  @media (max-width: 1400px) {
    .products-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (max-width: 1100px) {
    .products-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 500px) {
    .products-grid {
      grid-template-columns: 1fr;
    }
  }
  

  .product-card {
    perspective: 1200px;
  }

  .product-inner {
    position: relative;
    width: 100%;
    height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .product-card:hover .product-inner {
    transform: rotateY(15deg) rotateX(6deg);
  }

  .product-front,
  .product-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .product-image {
    height: 65%;
    width: 100%;
    object-fit: cover;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .product-price {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .btn-cart {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    background: var(--dark);
    color: var(--light);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
  }

  .btn-cart:hover {
    background: var(--gold);
  }

  /* Footer */
  footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 5% 2rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .footer-desc {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .social-links {
    display: flex;
    gap: 0.8rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    background: #333;
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 0.9rem;
  }

  .social-links a:hover {
    background: var(--gold);
  }

  .footer-links li {
    margin-bottom: 0.7rem;
  }

  .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
  }

  .footer-links a:hover {
    color: var(--gold);
  }

  .newsletter {
    display: flex;
    margin-top: 1rem;
  }

  .newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 0.4rem 0 0 0.4rem;
    font-size: 0.9rem;
  }

  .newsletter button {
    padding: 0.8rem 1.2rem;
    background: var(--gold);
    color: var(--light);
    border: none;
    border-radius: 0 0.4rem 0.4rem 0;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
  }

  .newsletter button:hover {
    background: var(--gold-dark);
  }

  .footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: #aaa;
  }

  @media (max-width: 992px) {
    .hero {
      flex-direction: column;
      height: auto;
      text-align: center;
    }
    .hero-content {
      width: 100%;
      margin-bottom: 3rem;
    }
    #hero-3d {
      position: relative;
      width: 100%;
      height: 420px;
    }
  }

  @media (max-width: 768px) {
    nav ul {
      display: none;
    }
    .mobile-nav {
      display: block;
    }
    .section-title {
      font-size: 2.2rem;
    }
  }

  #admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
  }
  
  #admin-form input, #admin-form button {
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  #admin-form button {
    background: var(--gold);
    color: white;
    border: none;
    cursor: pointer;
  }
  
  #admin-form button:hover {
    background: var(--gold-dark);
  }
  
.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 65%;      /* same height the single image had */
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  inset: 0;         /* stretch full area */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.product-img-wrapper img.active {
  opacity: 1;       /* only the current frame is visible */
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.modal.hidden { display: none; }

.modal-content {
  position: relative;
  width: 92%;
  max-width: 420px;
  padding: 3rem 2.5rem 2.5rem;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
  animation: modal-in .45s cubic-bezier(.165,.84,.44,1);
}

@keyframes modal-in {
  0%   { opacity: 0; transform: translateY(-24px) scale(.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

#auth-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

#auth-form input {
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: border-color .25s, box-shadow .25s;
}
#auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
  outline: none;
}

#auth-form .btn-primary {
  width: 100%;
  font-size: 1rem;
}

#auth-toggle-text {
  margin-top: 1.2rem;
  text-align: center;
  color: #666;
}
.link-button {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link-button:hover { text-decoration: underline; }

.close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.4rem;
  color: #666;
  cursor: pointer;
  transition: color .25s;
}
.close:hover { color: var(--gold); }

.signup-only          { display:none; }
.modal.signup .signup-only { display:block; }

.cart-box {
  max-width: 500px;
  padding-top: 2.5rem;
}
.cart-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.8rem;
}
#cart-items {
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-item img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: .4rem;
}
.cart-item-title { flex: 1; }
.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: crimson;
}
.cart-footer {
  margin-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total {
  font-weight: 600;
  font-size: 1.1rem;
}
.profile-box {
  max-width: 480px;
  padding-top: 2.5rem;
}
.profile-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.6rem;
}
.profile-details p {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.profile-details strong {
  display: inline-block;
  width: 90px;
  color: var(--gold-dark);
}

.orders-box   { max-width: 580px; padding-top: 2.5rem; }
.orders-heading { font-family:"Playfair Display",serif;font-size:1.6rem;text-align:center;margin-bottom:1.6rem; }
.order-card  { border:1px solid #eee; border-radius:.45rem; padding:1rem; margin-bottom:1rem; }
.order-card h4{ margin:.2rem 0 .6rem;font-size:1.1rem;color:var(--gold-dark); }
.order-items { font-size:.9rem; color:#444; line-height:1.45; margin-bottom:.6rem; }

.address-box       { max-width:500px; padding-top:2.5rem; }
.address-heading   { font-family:"Playfair Display",serif;font-size:1.6rem;text-align:center;margin-bottom:1.6rem; }
#address-list      { display:flex; flex-direction:column; gap:1rem; }
.address-card      { border:1px solid #eee; border-radius:.45rem; padding:1rem; cursor:pointer; transition:border .25s; }
.address-card.sel  { border-color:var(--gold); }
#address-form      { display:flex; flex-direction:column; gap:1rem; margin:1rem 0; }
.address-footer    { display:flex; justify-content:space-between; align-items:center; margin-top:1.2rem; }

.hidden { display: none; }
.fixed  { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-opacity-50 { background-color: rgba(0,0,0,0.5); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
/* .btn, .btn-primary, .btn-success etc. should already exist */


/* ============ Spring-collection hero ============ */
#collection .spring-title{
  text-align:center;
  margin-bottom:3rem;
  background:linear-gradient(135deg,#d4af37,#f4e4aa);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* --- Stats strip --- */
.collection-stats{
  display:flex;
  justify-content:center;
  gap:3rem;
  flex-wrap:wrap;
  margin-bottom:3rem;
}
.collection-stat{
  text-align:center;
  padding:1.5rem;
  min-width:120px;
  background:#fff;
  border-radius:15px;
  position:relative;
  box-shadow:0 4px 15px rgba(0,0,0,.1);
}

document.getelementbyId{
  user-select: inherit;

}
.collection-stat::before{
  content:'';
  position:absolute; inset:0; padding:2px;
  background:linear-gradient(135deg,#d4af37,#f4e4aa);
  border-radius:15px;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
}
.stat-number{font-size:1.8rem;font-weight:700;color:#d4af37;margin-bottom:.5rem;}
.stat-label {font-size:.9rem;color:#666;letter-spacing:1px;text-transform:uppercase;}
@media(max-width:768px){
  .collection-stats{gap:1.5rem}
  .collection-stat{min-width:100px;padding:1rem}
  .stat-number{font-size:1.4rem}
}

body[data-collection-view="true"] #collection{
  flex-direction: column;
  align-items: center;
  padding-top: 7.5rem;   /* <-- push content below the fixed header */
}

.category-card.active {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ✨ universal smooth-scroll for in-page links */
html {
  scroll-behavior: smooth;
}

.section,
section[id] {           /* fallback for any id’d section */
  scroll-margin-top: 90px;   /* header height + a little gap */
}

/* ---------- Order status ---------- */
.order-status{
  display:inline-block;
  margin-left:.5rem;
  padding:.2rem .55rem;
  font-size:.75rem;
  font-weight:600;
  border-radius:.35rem;
  color:#fff;
}
.order-status.paid{      background:#d4af37; }     /* gold */
.order-status.accepted{  background:#117a3f; }     /* green */
.order-status.refunded{  background:crimson;  }     /* red  */

/* tint the whole card when accepted */
.order-card.accepted{
  background:#e8f9ef;
  border-color:#c6eed7;
}

header .logo img {
  
  width: clamp(140px, 20vw, 190px);
  height: auto;
  max-width: 100%;
  transition: width 0.25s ease;
}

/* Fine‑tune for very small screens */
@media (max-width: 480px) {
  header .logo img {
    width: 130px; /* a touch smaller for narrow phones */
  }
}


#order-success-overlay{
  position:fixed; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; z-index:9999;
}
#order-success-overlay.hidden{display:none}
.overlay-backdrop{position:absolute; inset:0;
  background:rgba(0,0,0,.65);}
#order-success-player, #order-success-overlay h3{
  z-index:1;
}
#order-success-overlay h3{
  margin-top:1rem; font-size:1.35rem; color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,.4);
}

/* container that holds both animation and text */
.anim-box{
  position:relative;
  width:220px;          /* matches the Lottie size */
  height:220px;
}

/* the message itself */
.order-msg{
  position:absolute;
  inset:0;              /* stretch full box */
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:600;
  font-size:1.35rem;
  text-shadow:0 2px 4px rgba(0,0,0,.35);
  pointer-events:none;  /* make animation click-through */
}

/* ----------------------------------------------
   ✨   Cart address dropdown polish (index.html)
   ---------------------------------------------- */

/* keep label consistent & bold */
#cart-modal .modal-body label {
  display:block;
  font-weight:600;
  margin-bottom:0.35rem;
}

/* prettier <select> — custom arrow, brand focus ring */
#cart-modal #checkout-address {
  width:100%;                     /* full‑width like inputs */
  padding:0.75rem 1rem;           /* breathing room          */
  font-size:0.95rem;
  border:1px solid #ccc;
  border-radius:0.45rem;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center/12px 8px;
  /* hide native arrow */
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  transition:border-color .25s, box-shadow .25s;
}

/* gold glow on focus */
#cart-modal #checkout-address:focus {
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(212,175,55,0.25);
  outline:0;
}

/* subtle hint when disabled */
#cart-modal #checkout-address:disabled {
  opacity:0.6;
  cursor:not-allowed;
}

/* keeps the golden pill centred if the number goes 1→2 digits */
#cart[data-count]::after {
  min-width: 1.4em;          /* grows for 10, 11 … */
  text-align: center;
}


/* ----- cart price break-up ----- */
#cart-breakdown
{ 
  border-top: 1px solid #eee; 
  margin-top: .5rem; 
}
#cart-breakdown .break-line{ 
  display:flex; 
  justify-content:space-between; 
  padding:.35rem 0; 
  font-size:.95rem; 
  color:#444; 
}


/* sold-out ribbon / overlay */
.soldout-overlay{
  position:absolute; top:12px; left:-32px; width:140px;
  background:#c0392b; color:#fff; text-align:center;
  transform:rotate(-45deg); font-size:.7rem; text-transform:uppercase;
  box-shadow:0 2px 6px rgba(0,0,0,.2); pointer-events:none;
}
.product-card{ position:relative; }        /* ensure overlay is positioned */

/* ----- Reviews ----- */
.stars{display:flex;flex-direction:row-reverse;justify-content:center;margin:.5rem 0}
.stars input{display:none}
.stars label{
  font-size:2rem;color:#ddd;cursor:pointer;transition:color .2s;
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label{color:#d4af37}
