

/* Basic Reset + Variables */
:root {
  --bg: #432525;      
  --card: #df7e7e;        
  --muted: #ffaeae;       
  --accent: #bb0000;       
  --glass: rgba(182, 0, 0, 0.1); 

  --radius: 14px;
  --container: 1100px;

  font-family: Inter, "Poppins", system-ui, -apple-system, 'Segoe UI', Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
}



*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:#e9eef5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}



/* Container */
.container{
  width:90%;
  max-width:var(--container);
  margin:0 auto;
  padding:28px 0;
}

/* Header */
.site-header{
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,0.03);
  position:sticky;
  top:0;
  z-index:40;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo{display:flex;align-items:center;gap:10px}
.logo-img{width:100px;height:44px;border-radius:8px;object-fit:contain}
.brand{font-weight:700;font-size:18px}
.main-nav{display:flex;gap:18px}
.main-nav .nav-link{color:var(--muted);text-decoration:none;font-weight:500}
.header-actions{display:flex;gap:8px}
.icon-btn{
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:16px;
  padding:8px;
  border-radius:10px;
  cursor:pointer;
  transition:all .18s;
}
.icon-btn:hover{
  background:var(--glass);
  color:#fff;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 6px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

/* Product Grid */
.product-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:start;
  margin-top:12px;
}

/* Gallery */
.gallery{
  background:var(--card);
  padding:18px;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(2,6,23,0.5);
}

.main-image{
  position:relative;
  border-radius:12px;
  overflow:hidden;
}
.main-image img{
  display:block;
  width:100%;
  height:auto;
  max-height:460px;
  object-fit:contain;
  border-radius:8px;
}
.lightbox-trigger{
  position:absolute;
  bottom:12px;
  right:12px;
}

/* Thumbnails */
.thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.thumb{
  border-radius:8px;
  padding:3px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  transition:transform .15s, border-color .15s;
}
.thumb img{
  width:68px;
  height:48px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}
.thumb:hover{
  transform:translateY(-4px);
}
.thumb.active{
  border-color:rgba(255,255,255,0.12);
  background:linear-gradient(90deg,
    rgba(140,158,255,0.18),
    rgba(140,158,255,0.05)
  );
}

/* Product Info */
.product-info{padding:6px 4px}
.product-info h1{font-size:34px;margin:6px 0 8px}
.rating{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  margin-bottom:6px;
}
.rating .stars i{color:#ffd875;margin-right:4px}
.in-stock{color:#ffca00;font-weight:600;margin-bottom:10px}
.price{font-size:28px;font-weight:800;margin:12px 0}

.actions{
  display:flex;
  gap:12px;
  margin-bottom:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  cursor:pointer;
  text-decoration:none;
  color:inherit;
}
.btn i{font-size:16px}

/* Primary Button - SOFTER THEME */
.btn.primary{
  background:linear-gradient(180deg,var(--accent),#ff3535);
  border:0;
  color:#fff;
  box-shadow:0 8px 24px rgba(140,158,255,0.25);
  transition:transform .16s, box-shadow .16s;
}
.btn.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(140,158,255,0.35);
}

.btn.ghost{
  background:transparent;
  border:1px solid rgba(25, 246, 181, 0.25); /* soft aquamarine border */
  color:#ffca00; /* aquamarine-400 */
}

.btn.ghost:hover{
  background:rgba(25, 246, 181, 0.08);
  border-color:rgba(25, 246, 181, 0.4);
  color:#54ffc8; /* aquamarine-300 */
}

.btn.outline{
   background: linear-gradient(180deg, var(--accent), #ff3535);
  border:1px solid rgba(140,158,255,0.25);
  color:#ffffff;
}

.btn.outline:hover{
  background:rgba(25, 246, 181, 0.12);
  border-color:#ffca00; /* full aquamarine-400 */
  color:#54ffc8;
}


.benefits{
  list-style:none;
  padding:0;
  margin:8px 0;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.benefits li i{
  margin-right:8px;
  color:var(--muted);
}

/* Anchor links */
.anchor-links{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.anchor-btn{
  padding:8px 12px;
  border-radius:10px;
  background:rgba(255,255,255,0.02);
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  transition:all .16s;
}
.anchor-btn:hover{
  background:rgba(255,255,255,0.04);
  color:#fff;
}

/* Details */
.details{
  margin-top:28px;
  padding:24px;
  background:rgba(255,255,255,0.03);
  border-radius:12px;
}
.details-grid{
  display:flex;
  gap:30px;
}
.details ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

/* Reviews */
.reviews{margin-top:28px}
.avg-rating{
  display:flex;
  align-items:center;
  gap:18px;
}
.avg-rating .number{
  font-size:38px;
  font-weight:800;
}
.stars-large i{color:#ffd875}

.review-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:12px;
}
.review{
  background:rgba(255,255,255,0.03);
  padding:14px;
  border-radius:10px;
}
.review header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
}
.small-stars i{
  color:#ffd875;
  margin-left:6px;
}
.write-review{margin-top:12px}

/* Footer */
.site-footer{
  margin-top:40px;
  padding:28px 0;
  border-top:1px solid rgba(255,255,255,0.03);
}
.footer-grid{
  display:flex;
  gap:20px;
  align-items:flex-start;
  justify-content:space-between;
}
.footer-left, .footer-center, .footer-right{flex:1}
.footer-left .footer-logo{
  width:64px;
  border-radius:8px;
}
.payments i{
  font-size:28px;
  margin-right:10px;
}
.socials a{
  color:var(--muted);
  text-decoration:none;
  margin-right:10px;
}
copyright{
  display:block;
  margin-top:10px;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.76);
  z-index:120;
}
.lightbox img{
  max-width:92%;
  max-height:86%;
  border-radius:8px;
}
.lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  background:rgba(255,255,255,0.04);
  border:0;
  padding:8px;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
}

.details-tabs {
  display: flex;
  flex-wrap: wrap; /* allows tabs to wrap on small screens */
  gap: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(25,246,181,0.25);
}

.details-tabs .tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  color: #a8b3c5; /* muted text */
  font-weight: 500;
  transition: color 0.2s, border-bottom 0.2s;
  flex: 1 1 auto; /* flexible width for mobile */
  text-align: center;
}

.details-tabs .tab.active {
  color: #ffca00; /* aquamarine accent */
  border-bottom: 2px solid #ffca00;
}

.details-tabs .tab:hover {
  color: #54ffc8;
}

.tab-content .tab-panel {
  display: none;
  line-height: 1.5;
}

.tab-content .tab-panel.active {
  display: block;
}

/* -------------------------------
   RESPONSIVE FIXES
-------------------------------- */

@media (max-width:1024px){
  .product-grid{grid-template-columns:1fr 380px}
  .main-image img{max-height:380px}
}

@media (max-width:800px){
  .main-nav{display:none}
  .product-grid{grid-template-columns:1fr;gap:18px}
  .product-info h1{font-size:28px}
  .container{width:94%}
  .details-grid{flex-direction:column}
  .footer-grid{flex-direction:column;gap:18px}

  .rating, .price{display:none}

  .actions{
    width:180px;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    margin:0 auto;
  }

  .actions .btn{
    padding:20px 60px;
    white-space:nowrap;
  }
  .details-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .details-tabs .tab {
    text-align: left;
    padding: 10px 12px;
  }
}

@media (max-width:420px){
  .brand{display:none}
  .actions{flex-direction:column}
  .btn{width:100%;justify-content:center}

  .thumb img{
    width:56px;
    height:40px;
  }

  .rating, .price{display:none}

  .actions{
    width:180px;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    margin:0 auto;
  }

  .actions .btn{
    padding:20px 60px;
    white-space:nowrap;
  }
}