:root{
  --accent-gold: #c69b54;
  --muted: #bdbdbd;
  --card-bg: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.6);
}

/* Reset / base */
*{box-sizing:border-box}
html,body{height:100%}
body{
     margin:0;
    font-family: "Inter",
    system-ui, -apple-system,
    "Segoe UI", Roboto, Arial;
    color:#eef0f2;
     background-image: url('/storage/img/bg/bg.png');
    background-size: cover;
    /* makes it fill the screen */
    background-position: center;
    /* centers it */
    background-attachment: fixed;
    /* makes it stay when scrolling */
    background-repeat: no-repeat;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale; }

/* Container */
.container{ width:100%; max-width:1100px; margin:0 auto; padding:16px; }

/* Product detail section */
.product-detail-section{
  padding:14px 0 40px;
}

/* Back link */
.back-link{
  display:inline-block;
  color:var(--muted);
  text-decoration:none;
  margin-bottom:12px;
  font-weight:600;
  font-size:14px;
  transition: color .18s ease, transform .18s ease;
}
.back-link:hover{ color: #fff; transform: translateX(-3px); }

/* Card wrapper */
.product-detail{
  background: linear-gradient(180deg, rgba(6, 7, 8, 0.85), rgba(6, 7, 8, 0.75));
  border-radius: calc(var(--radius) + 6px);
  padding:12px;
  border:1px solid rgba(255,255,255,0.03);
  box-shadow: var(--shadow-lg);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  align-items:start;
}

/* Image area */
.product-detail-image{
  width:100%;
  border-radius:12px;
  overflow:hidden;
  background: rgba(255,255,255,0.02);
  display:flex;
  padding:10px;
}
.product-detail-image img{
  width:100%;
  height:auto;
  max-height:380px;
  object-fit:cover;
  transition: transform .5s ease, filter .3s ease;
  border-radius:10px;
  backface-visibility:hidden;
}
.mainproductDetails{
    display: flex;
}
.product-detail-image img:hover{ transform: scale(1.03); filter:brightness(1.02); }

/* Thumbnails row (horizontal on mobile) */
.product-thumbnails{
  margin-top:8px;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:6px;
  margin-top: 25px;
}
.product-thumbnails::-webkit-scrollbar{ display:none; }
.thumbnail{
  width:64px;
  min-width:64px;
  height:64px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.03);
  background:rgba(255,255,255,0.02);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  flex-shrink:0;
}
.thumbnail img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumbnail:hover{ transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.thumbnail.add-image{ display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:18px; }

/* Product info (mobile stacked under image) */
.product-detail-info{
  padding:12px 4px;
}
.product-detail-info h1{
  margin:4px 0 8px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size:20px;
  color:#fff;
  line-height:1.02;
}
.product-detail-price{
  margin:0 0 10px 0;
  font-size:18px;
  color:var(--accent-gold);
  font-weight:700;
}
.product-detail-description{
  color:var(--muted);
  font-size:14px;
  margin:6px 0 14px 0;
  line-height:1.55;
}

/* Option groups */
.product-options{ margin-bottom:12px; }
.option-group{ display:flex; flex-direction:column; gap:8px; }
.option-group label{ font-size:13px; color:var(--muted); font-weight:700; }
.option-buttons{ display:flex; gap:8px; flex-wrap:wrap; }

/* Option button style */
.option-buttons .option-btn{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;
  color:var(--muted);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.option-buttons .option-btn.active{
  color:var(--accent-gold);
  background: linear-gradient(90deg, rgba(198,155,84,0.06), rgba(198,155,84,0.03));
  box-shadow: 0 8px 20px rgba(198,155,84,0.04);
}

/* Quantity selector */
.quantity-selector{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.quantity-selector label{ color:var(--muted); font-weight:700; font-size:14px; }
.quantity-btn{
  width:40px; height:40px; border-radius:10px; border:none; cursor:pointer;
  background: rgba(255,255,255,0.02); color:#fff; font-size:18px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
  transition: transform .12s ease;
}
.quantity-btn:active{ transform: translateY(1px); }
.quantity-input{
  width:68px; text-align:center; padding:8px; border-radius:10px; border:1px solid rgba(255,255,255,0.03);
  background: rgba(255,255,255,0.01); color:#fff; font-weight:700;
}

/* Add to cart - big CTA */
.btn-block{
  width:100%;
  text-align:center;
  padding:12px 14px;
  font-weight:700;
  border-radius:12px;
  border:none;
  cursor:pointer;
  background: linear-gradient(90deg, rgba(198,155,84,0.12), rgba(198,155,84,0.06));
  color:var(--accent-gold);
  box-shadow: 0 12px 30px rgba(198,155,84,0.06);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn-block:hover{ transform: translateY(-4px); }
.mob{
    display: none;
  }

/* small screens - ensure good spacing */
@media (max-width: 420px){
  .product-detail-image img{ max-height:300px; max-width: 315px; }
  .thumbnail{ width:56px; height:56px; min-width:56px;}
  .product-detail-info h1{ font-size:18px; }
  .desk{
    display: none;
  }
  .mob{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: clip;
  }

  .product-detail-image{
    padding: 0px;
  }
  .mainproductDetails{
    flex-direction: column;
    gap: 5px;
  }

}

/* Desktop & tablet: two-column layout and richer presentation */
@media (min-width: 768px){
  .product-detail{
    grid-template-columns: 1fr 420px;
    gap:26px;
    padding:20px;
  }
 

  .product-detail-image{ padding:18px; }
  .product-detail-image img{ max-height:520px; border-radius:16px; }
  .product-thumbnails{ flex-direction:column; gap:12px; max-height:420px; overflow:auto; padding-right:6px; }
  .thumbnail{ width:72px; height:72px; min-width:72px; border-radius:12px;}
  .product-detail-info{ padding:10px 6px; position:sticky; top:28px; align-self:start; }
  .product-detail-info h1{ font-size:26px; }
  .product-detail-price{ font-size:20px; }
  .product-detail-description{ font-size:15px; }
  .btn-block{ padding:14px 16px; font-size:16px; border-radius:12px; }
  /* subtle card uplift on hover for desktop */
  .product-detail:hover{ transform: translateY(-4px); transition: transform .25s ease; }
}

/* Accessibility focus */
a:focus, button:focus, input:focus { outline: 3px solid rgba(198,155,84,0.12); outline-offset:3px; }

/* Helper: hide thumbnails when no images */
.product-thumbnails:empty{ display:none; }
