/* =========================
   GLOBAL RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial,sans-serif;
  background-image:url('../media/images/background images/promisefeat-premiere-service-ads.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  color:#f5f5f5;
  min-height:100vh;
  overflow-x:hidden;
}

:root {
  --primary: #f1683a;
  --primary-dark: #c94e22;
  --gold:    #c9a55a;
  --bg: #0a0a0f;
  --surface: #13131a;
  --border: rgba(255,255,255,0.09);
  --text: #f0f0f0;
  --muted: #6b6b7a;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

/* =========================
   HEADER
========================= */

/* ================= LOGO ================= */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 1000;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
}

#menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 6px;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo-img:hover { transform: scale(1.06); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-mobile-actions { display: none; }

.nav-links li a {
  text-decoration: none;
  color: rgba(240,240,240,0.8);
  font-size: 15px;
  font-weight: bold;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav-links li a:hover {
  color: var(--primary);
  background: rgba(241,104,58,0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search { display: flex; align-items: center; gap: 6px; }

.srch {
  padding: 8px 16px;
  width: 180px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s, background 0.25s;
}

.srch::placeholder { color: var(--muted); }
.srch:focus { border-color: var(--primary); background: rgba(255,255,255,0.09); }

.srch-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s;
}

.srch-btn:hover { background: var(--primary-dark); }

.buynow-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(251, 251, 251);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.25s, border 0.3s;
}

.buynow-btn:hover {
  background: rgba(255, 255, 255, 0.508);
  border: 1.8px solid rgba(255,255,255,0.2); }


.login-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: transparent;
  color: var(--text);
  border: 0.2px solid rgba(250, 250, 250, 0.488);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.25s, border 0.5s;
}

.login-btn:hover {
  background: var(--primary-dark);
  border: 1px solid white; 
  box-shadow: 2px 3px 7px var(--primary);
}

.icon-cart { position: relative; cursor: pointer; padding: 4px; }
.icon-cart svg { width: 24px; color: var(--text); }

#cart-count {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.nav-overlay.visible { opacity: 1; }

/* =========================
   MOBILE MENU
========================= */

#menu-toggle{
  display:none;
  background:none;
  color:#fff;
  font-size:28px;
}

/* =========================
   MAIN CONTENT
========================= */

main{
  width:100%;
  max-width:1400px;
  margin:auto;
  padding: 90px 20px;
}

.hero-text{
  position: relative;
  display: block;
}

h1{
  font-size:clamp(2rem,5vw,4rem);
  margin-bottom:15px;
  color: var(--primary-dark);
}

main p{
  max-width:700px;
  margin:auto;
  line-height:1.7;
}

/* =========================
   DESIGNER SECTION
========================= */

.designer{
  margin-top:40px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:25px;
  align-items:stretch;
}

/* =========================
   VIEWER
========================= */

.viewer-container{
  position:relative;
  width:100%;
  min-height:650px;
  background:rgba(0,0,0,0.6);
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 40px rgba(0,0,0,0.5);
}

.viewer-container model-viewer{
  width:100%;
  height:100%;
  background:
  radial-gradient(circle at top,
  #2e2e2e 0%,
  #111 60%);
}

/* =========================
   CONTROLS PANEL
========================= */

.controls{
  background:rgba(0,0,0,0.75);
  border-radius:24px;
  padding:25px;
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 10px 40px rgba(0,0,0,0.5);
  text-align:left;
}

.controls h3{
  margin-bottom:10px;
  margin-top:18px;
  font-size:17px;
}

/* =========================
   FORM INPUTS
========================= */

input[type="text"],
input[type="number"]{
  width:100%;
  padding:12px 15px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#fff;
  outline:none;
}

input:focus{
  border-color:#eb5620;
}

/* =========================
   ROW
========================= */

.row{
  display:grid;
  grid-template-columns:1fr 130px;
  gap:15px;
}

/* =========================
   PART BUTTONS
========================= */

.parts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.part-btn{
  padding:10px 15px;
  border-radius:12px;
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.08);
}

.part-btn.active{
  background:#eb5620;
}

/* =========================
   COLOR BUTTONS
========================= */

.colors{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.color-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,0.25);
}

.color-btn.active{
  transform:scale(1.1);
  box-shadow:0 0 0 4px rgba(255,255,255,0.1);
}

/* =========================
   SIZE BUTTONS
========================= */

.sizes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.size-btn{
  min-width:50px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,0.08);
  color:#fff;
}

.size-btn.active{
  background:#eb5620;
}

/* =========================
   ACTIONS
========================= */

.actions{
  margin-top:25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.selected-info{
  font-weight:600;
}

.add-btn{
  padding:14px 24px;
  border-radius:14px;
  background:#eb5620;
  color:#fff;
  font-weight:bold;
}

.add-btn:hover{
  background:#ff6b33;
}

/* ===================================
   FOOTER
=================================== */
.welcome-page footer {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 14px;
    opacity: 0.85;
}

/* ===================================
   FLOATING ACTION BUTTON
=================================== */
.welcome-page .fab-container {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1200;
}

.welcome-page #fab-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    background: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.welcome-page #fab-btn.active {
    transform: rotate(45deg) scale(1.08);
    background: var(--primary);
}

.welcome-page .fab-options {
    position: absolute;
    right: 4px;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.welcome-page .fab-options.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.welcome-page .fab-options a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.82);
    transition: var(--transition);
}

.welcome-page .fab-options a:hover {
    background: var(--primary);
    transform: translateX(-6px);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:1100px){

  .designer{
    grid-template-columns:1fr;
  }

  .viewer-container{
    min-height:500px;
  }
}

@media(max-width:820px){

  #menu-toggle{
    display:block;
    margin-left:auto;
  }

  nav{
    position:relative;
  }

  .nav-links{
    display:none;
  }

  .nav-actions{
    display:none;
  }

  #main-nav.open .nav-links,
  #main-nav.open .nav-actions{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    background:rgba(0,0,0,0.96);
    padding:20px;
    position:absolute;
    top:60px;
    left:0;
    border-radius:18px;
    gap:18px;
  }

  #main-nav.open .nav-actions{
    margin-left:0;
  }

  .search{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .srch{
    width:100%;
  }

  .desktop-only{
    display:none;
  }

  .nav-mobile-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
  }
}

@media(max-width:600px){

  body{
    padding-top:75px;
  }

  .viewer-container{
    min-height:400px;
  }

  .controls{
    padding:18px;
  }

  .row{
    grid-template-columns:1fr;
  }

  .actions{
    flex-direction:column;
    align-items:stretch;
  }

  .add-btn{
    width:100%;
  }
}

@media(max-width:400px){

  h1{
    font-size:2rem;
  }

  .viewer-container{
    min-height:320px;
  }

  .nav-links{
    gap:12px;
  }
}
