@import url('https://fonts.googleapis.com/css2?family=Sora:wght@200..800&family=Unbounded:wght@400..800&display=swap');

:root {
  --prism-ink: #0b0f14;
  --prism-night: #0f1722;
  --prism-cloud: #f6f5ef;
  --prism-muted: #c7cbd3;
  --prism-cyan: #2ee6d6;
  --prism-cyan-strong: #21c6b8;
  --prism-amber: #f6b24a;
  --prism-rose: #f07167;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(46, 230, 214, 0.12), transparent 60%),
    radial-gradient(700px 450px at 95% 10%, rgba(246, 178, 74, 0.16), transparent 55%),
    var(--prism-ink);
  color: var(--prism-cloud);
  font-family: "Sora", sans-serif;
}

/* banner */
.banner {
  width: 100%;
  overflow: hidden;
  background: #717171;
  height: 40px;
  display: flex;
  align-items: center;
}

.scrolling-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.scrolling-content span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

.dot {
  margin: 0 5rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* nav bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar:hover {
  background-color: black;
  transition: background-color 0.2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  padding: 0.8rem 10rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.desktop-logo {
  display: block;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22rem;
  font-size: 1.05rem;
  color: var(--prism-cloud);
  text-transform: uppercase;
}

.brand-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--prism-cyan), var(--prism-amber), var(--prism-rose));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: inline-block;
}

.desktop-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
  margin-left: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-left .nav-link {
  margin-left: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-right .nav-link {
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--prism-cloud);
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--prism-cyan);
}

.dropdown {
  position: relative;
  margin: 10px 0;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 120px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-nav-container {
  display: none;
}

.mobile-brands {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media screen and (max-width: 1120px) {
  .nav-menu {
    padding: 0.8rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-container {
    display: block;
    width: 100%;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-logo .brand-mark {
    font-size: 1rem;
    cursor: pointer;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
  }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.8rem 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: transparent;
  }
}

/* shopping cart */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -2000px;
  width: 600px;
  height: 98%;
  margin: 10px;
  border-radius: 15px;
  background-color: #0a0c12;
  color: var(--prism-cloud);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.cart-sidebar.open {
  right: 10px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}

.cart-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--prism-cloud);
  cursor: pointer;
}

.cart-body {
  display: flex;
  flex: 1;
  gap: 20px;
}

.cart-products {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #444;
  margin-bottom: 15px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.item-info {
  flex: 1;
}

.item-info h4 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
}

.item-info p {
  font-size: 1rem;
  margin: 0 0 10px 0;
  color: #ccc;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background-color: #333;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.remove-item {
  background: none;
  border: none;
  color: #ff5555;
  font-size: 0.9rem;
  cursor: pointer;
}

.cart-summary {
  width: 250px;
  padding: 20px;
  background-color: #111826;
  border-radius: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}

.summary-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--prism-cloud);
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 10px;
}

.continue-shopping-btn {
  background-color: var(--prism-cyan);
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.checkout-btn {
  background-color: var(--prism-cyan);
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 90%;
    max-width: 400px;
    height: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 15px;
    padding: 20px;
    margin: 0;
    background-color: #000;
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 9999;
  }

  .cart-sidebar.open {
    transform: translate(-50%, -50%) scale(1);
  }

  .cart-body {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #111;
    border-radius: 10px;
  }

  .cart-products {
    max-height: 60vh;
    min-height: 25vh;
    overflow-y: auto;
  }

  .cart-header h2 {
    font-size: 1.6rem;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .item-info h4 {
    font-size: 1rem;
  }

  .item-info p {
    font-size: 0.9rem;
  }
}



/* login & register & logout modal */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  background-color: #0a0c12;
  color: var(--prism-cloud);
  z-index: 9999;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 600px) {
  .modal {
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.modal p {
  margin-bottom: 1rem;
}

.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.login-form label,
.register-form label {
  font-weight: bold;
}

.login-form input,
.register-form input {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.login-submit,
.register-submit {
  background-color: var(--prism-cyan);
  color: #000;
  border: none;
  padding: 0.8rem;
  margin-top: 25px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.login-submit:hover,
.register-submit:hover {
  background-color: var(--prism-cyan-strong);
}

.cancel-btn {
  background-color: #ccc;
  color: #000;
}

.create-btn {
  background-color: var(--prism-cyan);
  color: #000;
}

.create-btn:hover {
  background-color: var(--prism-cyan-strong);
}

/* Button styling */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.cancel-btn {
  background-color: #ccc !important;
  color: #000 !important;
}

.create-btn {
  background-color: var(--prism-cyan) !important;
  color: #000 !important;
}

.create-btn:hover {
  background-color: var(--prism-cyan-strong) !important;
}


/* footer */
.footer {
  background-color: #0a0c12;
  color: var(--prism-cloud);
  padding: 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  margin-bottom: 60px;
}

.footer-col {
  font-size: 14px;
  line-height: 1.6;
  margin-right: 70px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 30px;
}

.footer-col address {
  color: grey;
  margin-top: 30px;
}

.footer-col p {
  max-width: 300px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: grey;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 14px;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .footer-top {
    flex-wrap: wrap;
    text-align: center;
  }

  .footer-col {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .footer-top .footer-col:nth-child(1),
  .footer-top .footer-col:nth-child(2) {
    width: 50%;
  }

  .footer-top .footer-col:nth-child(3) {
    width: 100%;
  }
}