@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

:root {
  /* Primary Colors */
  --primary: #646cffaa;
  --primary-solid: #646cff;

  /* Backgrounds */
  --bg-main: #191717; /* Dark background */
  --bg-card: #1a1a2f; /* Card background */
  --bg-soft: #26263a; /* Soft sections */

  /* Text */
  --text-main: #f4f4ff; /* Light text */
  --text-muted: #c0c0ff; /* Muted text */
  --text-soft: #8a8abf; /* Softer secondary text */

  /* Borders and Dividers */
  --border: #3f3f5a;

  /* Buttons */
  --btn-primary-bg: #646cff;
  --btn-primary-hover: #4f54d9;
  --btn-primary-text: #ffffff;

  --btn-secondary-bg: #1a1a2f;
  --btn-secondary-border: #646cff;
  --btn-secondary-text: #c0c0ff;

  /* Alerts */
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --info: #3498db;

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(100, 108, 255, 0.15);
  --shadow-strong: 0 4px 16px rgba(100, 108, 255, 0.25);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.nav-btn {
  display: flex;
  gap: 10px;
}
.button-primary,
.button-primary-2 {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 10px 20px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
  cursor: pointer;
}

.button-primary:hover,
.button-primary-2:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: var(--shadow-strong);
}

.button-primary-2 {
  background-color: transparent;
  outline: 2px solid var(--btn-primary-bg);
}

.logo,
.footer-logo {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
}

.logo:hover,
.footer-logo:hover {
  text-shadow: var(--shadow-strong);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block-end: 1.5px solid var(--border);
  padding: 15px 40px;
}

header ul {
  display: flex;
  gap: 25px;
}

header ul li {
  list-style: none;
}

header ul li a {
  text-decoration: none;
  color: lightgray;
  font-size: 1rem;
}

header ul li a:hover {
  color: var(--text-muted);
}

.three-line {
  display: none;
}

/* serach-box section */
.search-wrapper {
  width: 30%;
  background-color: #111113;
  display: flex;
  align-items: center;
  border: 1px solid gray;
  border-radius: 10px;
  padding: 0px 10px;
}

.search-wrapper input {
  width: 100%;
  background-color: transparent;
  outline: none;
  border: none;
  padding: 10px;
  color: lightgray;
  font-size: 1.1rem;
  font-weight: 500;
}

.search-wrapper:hover {
  box-shadow: var(--shadow-strong);
}

footer {
  border-block-start: 1px solid var(--border);
  width: 100%;
}

footer .top {
  display: flex;
  gap: 100px;
  padding: 40px;
}

.footer-sec-a {
  width: 30%;
}

.footer-logo-desc {
  margin-block: 10px;
  color: lightgray;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links a {
  cursor: pointer;
}

.footer-sec-b p {
  margin-block-end: 15px;
}

.footer-sec-b ul li {
  list-style: none;
  margin-block-end: 10px;
}

.footer-sec-b ul li a {
  text-decoration: none;
  color: gray;
  transition: 0.2s linear;
}
.footer-sec-b ul li a:hover {
  color: var(--text-muted);
}

footer .bottom {
  border-block-start: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  color: gray;
}

#copywrite {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: 0.2s linear;
}

#copywrite:hover {
  color: var(--btn-secondary-border);
}

/* main section */

.products-sec {
  padding: 40px;
  margin-block: 10px;
}

.products-sec-head {
  /* outline: 1px solid gray; */
}

.products-sec-head h2 {
  color: var(--text-main);
  font: 1rem;
}

.products-sec-head p {
  color: rgb(163, 160, 160);
  font-size: 0.9rem;
  margin-block-start: 8px;
}
.products-sec-main {
  margin-block-start: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  overflow-x: scroll;
}

.products-sec-main::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex-shrink: 0;
  width: clamp(250px, 25vw, 350px);
  height: clamp(400px, 80vh, 500px);
  background-color: #222325;
  border: 1px solid gray;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card-img {
  height: 60%;
}

.product-card-img img {
  height: 100%;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.product-card-desc {
  flex: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-desc-wrapper {
  display: flex;
  gap: 15px;
}
.product-desc {
  width: 70%;
}

.product-desc .title {
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-desc .desc {
  font-size: 0.8rem;
  margin-block: 10px;
  color: lightgray;
  height: 40px;
  text-overflow: ellipsis;
}

.product-price .price {
  color: var(--btn-primary-bg);
  font-size: 1.5rem;
  font-weight: 600;
}

.price-desc {
  margin-block-start: 5px !important;
  font-size: 0.6rem;
  color: rgb(116, 111, 111);
}

.product-card-btn {
  display: flex;
  gap: 10px;
}

.product-card-btn button {
  width: 50%;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 10px 20px;
  margin-block-start: 10px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
  cursor: pointer;
}

.product-card-btn button:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: var(--shadow-strong);
}

.add-to-cart-btn {
  background-color: transparent !important;
  outline: 1px solid var(--btn-primary-bg);
}

/* form section */
/* signup form */

.main-sec {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}
.form-wrapper {
  width: 40%;
}

form {
  outline: 2px solid rgb(133, 129, 129);
  outline-offset: 2px;
  border-radius: 15px;
  padding: 20px;
}

.form-head {
  text-align: center;
  margin-block: 20px;
}
.form-head h1 {
  color: var(--btn-primary-bg);
  margin-block-end: 8px;
}

.form-head h2 {
  font-size: 0.8rem;
  font-weight: normal;
  color: lightgray;
}

.input-field {
  margin-block: 20px;
  position: relative;
}

.input-field-wrapper {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 100%;
  height: 40px;
  transition: 0.2s linear;
}

.input-field-wrapper:hover {
  border-color: var(--btn-primary-hover);
}
.input-field-wrapper .icon-wrapper {
  width: 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-inline-end: 1px solid var(--border);
}

.input-field-wrapper .password-icon {
  border-inline-end: none;
  border-inline-start: 1px solid var(--border);
  cursor: pointer;
}
.input-field input {
  width: 92%;
  padding: 10px;
  font-size: 1.2rem;
  background-color: transparent;
  color: white;
  border: none;
  outline: none;
  font-size: 1rem;
  transition: 0.2s linear;
}

.input-field .input-label {
  width: fit-content;
  color: lightgray;
  margin-inline-start: 10%;
  /* transform: translateY(28px); */
  font-size: 0.8rem;
  pointer-events: none;
  transition: 0.2s linear;
  position: absolute;
  top: 12px;
  display: none;
}

.input-field:focus-within .input-label {
  /* transform: translateY(2.1px); */
  top: -10px;
  background-color: var(--bg-main);
  padding-inline: 5px;
}

.input-field .error-box {
  color: red;
  font-size: 0.9rem;
  margin: 8px 10px;
  opacity: 0.6;
  display: none;
}
.submit-btn,
.home-btn {
  width: 100%;
  height: 40px;
  margin-block: 20px;
  background-color: transparent;
  border: 2px solid var(--btn-primary-bg);
  border-radius: 8px;
  color: var(--btn-secondary-text);
  cursor: pointer;
  transition: 0.2s linear;
}

.submit-btn:hover {
  background-color: var(--btn-primary-bg);
  color: white;
}

.home-btn {
  color: lightgray;
  border-color: lightgray;
  transition: 0.2s linear;
}
.home-btn:hover {
  background-color: #fff;
  color: var(--bg-main);
}

.terms,
.form-switcher {
  font-size: 0.8rem;
  color: lightgray;
  line-height: 22px;
  padding-inline: 10px;
}
.terms a,
.form-switcher a {
  color: var(--btn-primary-hover);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s linear;
}
.terms a:hover,
.form-switcher a:hover {
  color: var(--btn-primary-bg);
}

.form-switcher {
  margin-block: 20px;
  text-align: center;
}
