@import url('css/navbar.css');
@import url('css/main.css');
@import url('css/navbar.css');

html, body {
  touch-action: manipulation;
}

:root {
  --bg: #0f1712;      
  --panel: #16221a;         
  --panel-2: #1c2b22;     
  --border: #2e4436;

  --accent: #6ddc8c;          
  --accentdark: #4fbf70;    
  --accent-soft: #bff5cf;     
  --accentrgb: rgba(109,220,140,0.9);
  --accentdarker: #6ddc8c18;

  --text: #f2fff6;           
  --text-secondary: #cfe8d7;
  --muted: #8fb6a0;

  --pillbackground: rgba(109,220,140,0.12);
  --pillborder: rgba(109,220,140,0.35);
  --overlay: rgba(10, 20, 15, 0.85);
}






    @keyframes shrink {
      from { width: 100%; }
      to { width: 0%; }
    }
.navbar {
  background-color: var(--overlay);
  backdrop-filter: blur(10px);
  border-bottom: solid 1px var(--border);
  position: sticky;
  margin-bottom: 30px;
}

.tabs,
.controls,
.grid {
  width: 100% !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding-inline: 16px !important; 
}

.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 20px !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 810px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

}

.product-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
}

/* ========================= */
/* CARD */
/* ========================= */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 230px;
  box-sizing: border-box;

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s,
    background-color 0.3s;
}

/* IMAGE */
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================= */
/* TEXT */
/* ========================= */

.badge {
  align-self: flex-start;
  background: rgba(0, 255, 160, 0.15);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 5px;
}

.title {
  font-size: 14px;
  font-weight: 600;
}

.price {
  font-size: 13px;
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: var(--accent);
  color: #0a0c10;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary,
.qc-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.small {
  height: 50px;
}

.btn:hover,
.qc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* QC MODAL */
.qc-modal{
  position:fixed;
  inset:0;
  backdrop-filter: blur(14px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  animation:fadeBg .25s ease;
}

@keyframes fadeBg{
  from{opacity:0}
  to{opacity:1}
}

/* ===== MAIN CONTAINER ===== */
.qc-carousel{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px;
  box-sizing:border-box;
}

/* ===== IMAGE FRAME ===== */
.qc-image-frame{
  width: min(80vw, 1100px);
  border-radius:18px;
  overflow:hidden;               
  background:var(--bg);           
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 40px 120px rgba(0,0,0,.9);
  display:flex;
  align-items:center;
  justify-content:center;
    animation:imgFade .35s ease;

}

/* ACTUAL IMAGE */
#qcImage{
  width:100%;
  height:100%;
}
#qcModal {
  position: fixed;
  inset: 0;
  display: none;
  background: var(--overlay);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


@keyframes imgFade{
  from{opacity:0; transform:scale(.96)}
  to{opacity:1; transform:scale(1)}
}

/* ===== NAV ARROWS ===== */
.qc-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  border-radius:50%;
  border:none;
  font-size:26px;
  color:var(--text);
  cursor:pointer;
  background:rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transition:.2s ease;
}

.qc-arrow:hover{
  background:var(--accent);
  color: var(--bg);
}

.qc-arrow.left{ left:30px; }
.qc-arrow.right{ right:30px; }

/* ===== CLOSE BUTTON ===== */
.close{
  position:absolute;
  top:28px;
  right:38px;
  font-size:36px;
  color:#fff;
  cursor:pointer;
  opacity:.7;
  transition:.2s;
  z-index: 10;
}

.close:hover{
  opacity:1;
  transform:scale(1.15);
}

/* ========================= */
/* ===== TABLET FIXES ===== */
/* ========================= */
@media (max-width: 900px){

  .qc-carousel{
    padding:40px;
  }

  #qcImage{
    width:92vw;
    height:80vh;
    border-radius:14px;
  }

  .qc-arrow{
    width:48px;
    height:48px;
    font-size:22px;
  }

  .qc-arrow.left{ left:16px; }
  .qc-arrow.right{ right:16px; }

  .close{
    top:18px;
    right:22px;
    font-size:32px;
  }
}

/* ========================= */
/* ===== MOBILE FIXES ===== */
/* ========================= */
@media (max-width: 600px){

  .qc-carousel{
    padding:20px;
  }

  #qcImage{
    width:100%;
    height:auto;
    max-height:75vh;
    border-radius:12px;
  }

  /* arrows become bottom buttons (thumb friendly) */
  .qc-arrow{
    top:auto;
    bottom:18px;
    transform:none;
    width:54px;
    height:54px;
    font-size:24px;
    background:rgba(255,255,255,.12);
  }

  .qc-arrow.left{
    left:calc(50% - 80px);
  }

  .qc-arrow.right{
    right:calc(50% - 80px);
  }

  .qc-arrow:hover{
    transform:scale(1.1);
  }

  .close{
    top:14px;
    right:16px;
    font-size:30px;
  }
}




.tabs {
  display: flex;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 70px;
  cursor: pointer;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
    padding: 12px 0;
    min-width: 0;
   flex: 1 1 0;
  width: 180px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--accent);
  white-space: nowrap;
  transition: all 0.25s ease;


}

.tab.active {
  background: var(--accent);
  color: var(--bg);
}

.controls {
  position: sticky;
  top: 60px;
  background: var(--bg);
  padding: 12px 0;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.controls input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%238b97a4' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M10 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16z' stroke='%238b97a4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

input,
select {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  color: var(--text);
  height: 70px;
  text-transform: uppercase;
    border-radius: 10px;
}

select {
  flex: 0 0 400px;
background: var(--panel);
  cursor: pointer;

}

input { 
  background: var(--panel-2);

}

.card {
  position: relative; /* required for absolute positioning of button */
}

.qc-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.qc-button svg {
  width: 24px;
  height: 24px;
  fill: #e3e3e3;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.qc-button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.qc-button:hover svg {
  fill: #fff;
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}


.product-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
}

.qc-btn {
  height: 38px;
  flex-shrink: 0;
  margin-top: auto;
}


.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 230px;
 transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s,
              background-color 0.3s;}


.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  transform: scale(1.1);
      margin-top: auto;

}





.badge {
  align-self: flex-start;
  background: rgba(0,255,160,0.15);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 11px;
    z-index: 6;
        margin-top: auto;
          border-radius: 5px;
}

.title {
  font-size: 14px;
  font-weight: 600;
      z-index: 6;
    margin-top: auto;

}

.price {
  font-size: 13px;
  color: var(--muted);
    font-family: 'Orbitron', sans-serif;
  font-weight: 700;
      z-index: 6;
          margin-top: auto;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 7;
      margin-top: auto; 

}



.btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  background: var(--accent);
  color: #0a0c10;
  font-weight: 600;
    z-index: 7;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
  bottom: 0px;
    border-radius: 10px;
}

.qc-btn {
    background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;  
    border-radius: 10px;
}


.qc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn.small {
    height: 50px;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  z-index: 7;
  

}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 810px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
.qc-button:hover {
    background-color: var(--bg); 
    transform: none;          
}
  .tab {
    width: 100px;
  }

  .card {
    min-width: 0;
  }

  .card img {
    transform: scale(1);
  }

  .tabs,
  .controls,
  .grid {
    width: 92%;
    margin-inline: auto;
  }

  .menu-btn {
    display: flex;
  }

  .btn {
    font-size: 12px;
  }

  #sortSelect,
  .cart-btn,
  .nav-links {
    display: none;
  }

  .tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    height: 40px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }
.notification-content {
  position: relative !important;
  z-index: 1 !important;
}

.notification-title {
  font-weight: bold !important;
  margin-bottom: 4px !important;
}

.notification-desc {
  font-size: 0.9rem !important;
  opacity: 0.9 !important;
  color: var(--text-secondary) !important;
}

#notification-container {
  position: fixed !important;
  bottom: 10px !important; /* distance from bottom */
  left: 50% !important; /* center container */
  transform: translateX(-50%) !important; /* center horizontally */
  display: flex !important;
  flex-direction: column-reverse !important; /* newest at bottom */
  gap: 8px !important;
  z-index: 10000 !important;
  pointer-events: none !important; /* allow clicks through container */
  align-items: center !important; /* center notifications inside container */
}
.notification-content {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important; /* stack title and description vertically */
  justify-content: center !important; /* vertical centering */
  align-items: center !important; /* horizontal centering */
  text-align: center !important; /* make text inside also centered */
  height: 100% !important; /* make it fill the notification height */
}


.left-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important; /* thinner bar */
  background-color: #ffffff;
  border-radius: 0 0 6px 6px !important; /* small rounding */
}

.notification {
  position: relative !important; /* relative to container, not fixed */
  background-color: var(--panel) !important;
  color: var(--text) !important;
  padding: 12px 20px !important;
  padding-bottom: 28px !important; /* space for bottom bar */
  transform: translateY(100%) !important; /* slide from bottom */
  opacity: 0 !important;
  transition: transform 0.4s ease, opacity 0.4s ease !important;
  min-width: 300px !important; /* fixed width */
  max-width: 300px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  pointer-events: auto !important; /* allow clicks on notification */
  max-height: fit-content;

}
.notification.show {
  transform: translateY(0) !important; /* slide into view */
  opacity: 1 !important;
}

  .tab {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 12px;
    white-space: nowrap;
  }

  .btn.small {
    height: 40px;
  }

  .controls {
    flex-direction: column;
    gap: 12px;
  }

  .controls select {
    order: 1;
  }

  .controls input {
    order: 2;
  }
}
