@import url(./reset.css);

@font-face {
  font-family: 'Beatrice';
  /* Name you'll use in CSS */
  src: url(../fonts/BeatriceDeckTRIAL-Medium-BF64829e8e8d71a.woff);
  font-weight: 500;
  /* or bold */
  font-style: normal;
  /* or it    alic */
}

@font-face {
  font-family: 'Beatrice';
  /* Name you'll use in CSS */
  src: url(../fonts/BeatriceDeckTRIAL-Regular-BF64829e8e41476.woff);
  font-weight: 400;
  /* or bold */
  font-style: normal;
  /* or it    alic */
}

@font-face {
  font-family: 'Beatrice';
  /* Name you'll use in CSS */
  src: url(../fonts/BeatriceDeckTRIAL-Bold-BF64829e8e9ca08.woff);
  font-weight: 700;
  /* or bold */
  font-style: normal;
  /* or it    alic */
}

@font-face {
  font-family: 'Beatrice';
  /* Name you'll use in CSS */
  src: url(../fonts/BeatriceDeckTRIAL-Light-BF64829e8e6b5e8.woff);
  font-weight: 300;
  /* or bold */
  font-style: normal;
  /* or it    alic */
}

@font-face {
  font-family: 'Beatrice';
  /* Name you'll use in CSS */
  src: url(../fonts/BeatriceDeckTRIAL-Thin-BF64829e8e21d70.woff);
  font-weight: 100;
  /* or bold */
  font-style: normal;
  /* or it    alic */
}


body {
  font-family: 'Beatrice';
  font-weight: 500;
  background-image: url(../img/background.png);
  color: black;
}

.container {
  padding: 20px 80px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

section {
  margin: 100px 50px;
}

a {
  color: black;
  transition: all 0.5s ease;
}

a:hover {
  color: #000000a2;
}

h1 {
  font-weight: 800;
  font-size: 48px;
  text-transform: uppercase;
}

h2 {
  font-size: 48px;
  font-weight: 400;
}

h3 {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
}

h3 span {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
}

.category-txt {
  opacity: 55%;
}

button {
  margin-top: 20px;
}

input, textarea {
	border: 1px solid black;
	border-radius: 5px;
}


/* Header navbar */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-image: url(../img/background.png);
  background-color: #efeded;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 200px;
}

.nav {
  width: 500px;
}

.nav ul {
  justify-content: center;
  display: flex;
  gap: 50px;
}

.nav-button {
  display: block;
  background-color: black;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  text-align: center;
  align-content: center;
  transition: all 0.5s ease;
  color: white;
}

.nav-button:hover {
  background-color: #000000a2;
}

.nav-button-cart {
  display: flex;
  gap: 10px;
  height: 50px;
  padding: 10px;
  width: max-content;
  background-color: black;
  border-radius: 30px;
  text-align: center;
  align-items: center;
  transition: all 0.5s ease;
  color: white;
}

.nav-button-cart:hover {
  background-color: #000000a2;
  color: white;
}

.nav-button-wl {
  display: flex;
  gap: 10px;
  height: 50px;
  padding: 10px;
  width: 70px;
  background-color: black;
  border-radius: 30px;
  text-align: center;
  align-items: center;
  transition: all 0.5s ease;
  color: white;
} 

.nav-button-wl:hover {
  background-color: #c17777a2;
  color: white;
}


.nav-button-profile {
  display: flex;
  gap: 10px;
  height: 50px;
  padding: 10px;
  width: max-content;
  background-color: black;
  border-radius: 30px;
  text-align: center;
  align-items: center;
  transition: all 0.5s ease;
  color: white;
}

.nav-button-profile:hover {
  background-color: #000000a2;
  color: white;
}


/* Welcome section */

.welcome-info {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 300px;
}

.btn {
  display: block;
  background-color: rgba(0, 0, 0, 0.229);
  padding: 10px 20px;
  border-radius: 5px;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.395);
  color: #efeded;
}

/* Products section */

.product {
  position: relative;
  overflow: hidden;
  margin: 120px auto;
  max-width: 1400px;
}

.product-category {
  margin-bottom: 40px;
  text-transform: uppercase;
}

.product-slider {
  padding: 0 10vw;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 40px;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;
  width: 250px;
  height: auto;
  /* margin-right: 40px; */
}

.product-image {
  position: relative;
  width: 250px;
  height: 300px;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.discount-tag {
  position: absolute;
  background: #fff;
  padding: 5px;
  border-radius: 5px;
  color: #000000a2;
  right: 10px;
  top: 10px;
  text-transform: capitalize;
}

.card-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  width: 90%;
  text-transform: uppercase;
  text-align: center;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 5px;
  transition: 0.5s;
  cursor: pointer;
  opacity: 0;
}

.product-card:hover .card-btn {
  opacity: 1;
}

.card-btn:hover {
  background: #000000a2;
  color: #fff;
}

.product-info {
  width: 100%;
  height: 100px;
  padding-top: 10px;
}

.product-brand {
  text-transform: capitalize;
  font-size: 16px;
}

.product-short-description {
  width: 100%;
  overflow: hidden;
  opacity: 0.5;
  text-transform: capitalize;
  margin: 5px 0;
  font-size: 14px;
}

.price {
  color: black;
  font-weight: 900;
  font-size: 16px;
}

.actual-price {
  color: #000;
  margin-left: 20px;
  opacity: 0.5;
  text-decoration: line-through;
}

.pre-btn,
.nxt-btn {
  border: none;
  width: 10vw;
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 8;
}

.pre-btn {
  left: 0;
  transform: rotate(180deg);
}

.nxt-btn {
  right: 0;
}

.pre-btn img,
.nxt-btn img {
  opacity: 0.2;
}

.pre-btn:hover img,
.nxt-btn:hover img {
  opacity: 1;
}
/* 
.collection-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
} */

/* About section */

.about {
  margin-left: 0;
  margin-right: 0;
}

.about p {
  font-weight: 300;
  font-size: 16px;
  margin-top: 20px;
}

.about-text {
  text-align: center;
  margin-bottom: 50px;
}

.about-images {
  text-align: center;
}

.about-images img {
  margin-right: 20px;
}

.lower-img {
  margin-top: 100px;
}

/* Footer section */

footer {
  background-color: rgba(0, 0, 0, 0.048);
  padding: 80px 50px 20px;
}

footer .container {
  margin-bottom: 0;
}

.footer-info {
  display: flex;
  justify-content: start;
  gap: 500px;
}

.footer-info a {
  font-size: 14px;
  font-weight: 300;
}

.footer-title {
  font-size: 14px;
  font-weight: 300;
  margin-top: 50px;
  text-align: center;
}

/* Detail page */

.product-detail {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 150px 200px;
}

.detail-image img {
  width: 360px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid #d9d9d9;
}

.detail-text {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 360px;
}

.detail-text p {
  font-size: 14px;
}

.detail-button {
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.like {
  background-color: rgb(228, 173, 182);
}

.like:hover {
  background-color: rgb(207, 137, 149)
}

.remove {
  background-color: transparent;
  border: 1px solid rgb(228, 173, 182);
  color: rgb(228, 173, 182);
}

.remove:hover {
  background-color: rgb(228, 173, 182);
  color: #fff;
}

/* Shop page */

.products {
  margin-left: 80px;
  margin-bottom: 200px;
}

.products-info {
  display: flex;
  gap: 200px;
}

.categories-list {
  line-height: 2;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.nav-page {
  margin-top: 50px;
}

.page-list {
  display: flex;
  gap: 50px;
  align-items: center;
}

.page-list li {
  font-size: 16px;
  color: #d9d9d9;
}

.page-list a:hover {
  color: #000;
  text-decoration: underline;
}

.nav-arrow {
  font-weight: 700;
  font-size: 20px;
}

.products-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sort-form select {
  height: 42px;
  padding: 0 16px;
  border: 1px solid black;
  border-radius: 0;
  background: transparent;
  font-family: 'Beatrice';
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  transition: background-color 0.3s ease;
}

.sort-form select:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.search-bar {
  display: flex;
}

.search-bar input[type="search"] {
  flex: 1;
  max-width: 360px;
  padding: 10px 16px;
  border: 1px solid black;
  border-right: none;
  border-radius: 0;
  font-family: 'Beatrice';
  font-size: 14px;
  background: transparent;
  outline: none;
  margin-top: 0;
}

.search-bar button {
  margin-top: 0;
  padding: 10px 20px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 0;
  font-family: 'Beatrice';
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #000000a2;
}

.search-count {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.6;
  text-transform: none;
}

/* Cart page */

.cart-container {
  padding: 20px 70px;
  display: flex;
  justify-content: space-between;
}

.shopping-bag {
  max-width: 800px;
}

.cart-cards {
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
}

.cart-card {
  display: flex;
}

.order-summary {
  position: sticky;
  z-index: 999;
  border: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  padding: 20px;
  max-height: fit-content;
}

.empty {
  text-align: center;
}

.empty h2 {
  margin-bottom: 20px;
}

.product-card-right {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 80px;
}

.btn-icon {
  margin-top: 0;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.5s ease;
}

.btn-icon:hover {
  font-weight: 900;
}

.form-quantity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid #d9d9d9;
  border-collapse: collapse;
  width: 30px;
  height: auto;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
}

/* Login page */

.login-form {
  padding: 20px;
  border: 2px solid #d9d9d9;
  margin: 0 400px;
}

.login-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form h3 {
  margin-bottom: 20px;
}

.login-form a {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
}

.register-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

.login-section li {
  color: red;
  font-size: 14px;
}

.github-link img {
  height: 50px;
}

.github-link:hover {
  height: 50px;
  opacity: 50%;
}


/* Profile page */

.form-buttons {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.btn[type='reset'] {
  background-color: #00000000;
  border: 1px solid #000000a2;
  transition: all 0.5s ease;
}

.btn[type='reset']:hover {
  background-color: black;
  color: white;
}

/* Checkout page */

.checkout-info {
  display: flex;
  gap: 100px;
  margin: 50px;
}


.checkout-form {
  width: 400px;
}

.checkout-info p {
  line-height: 2;
  margin-bottom: 10px;
}

.order-products {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  border: 1px solid #000000a2;
}

/* Orders list page */

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  max-width: 800px;
}

.order-card {
  border: 1px solid #d9d9d9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.order-date {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.6;
}

.order-status {
  font-size: 12px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.status-pending {
  border: 1px solid #aaa;
  color: #555;
}

.status-processing {
  background-color: #1a73e8;
  color: white;
}

.status-shipped {
  background-color: #7b1fa2;
  color: white;
}

.status-delivered {
  background-color: #2e7d32;
  color: white;
}

.status-cancelled {
  background-color: #c62828;
  color: white;
}

.order-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #d9d9d9;
  padding-top: 16px;
}

.order-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.order-item-img {
  width: 56px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.order-item-name {
  flex: 1;
  text-transform: capitalize;
}

.order-item-qty {
  opacity: 0.5;
  font-size: 13px;
}

.order-card-footer {
  border-top: 1px solid #d9d9d9;
  padding-top: 16px;
  text-align: right;
}

/* ===== Responsive ===== */

/* Desktop: order navbar children so logo stays centered */
.navbar .logo { order: 2; }
.hamburger-btn {
  display: none;
  order: 10;
  padding: 8px;
  cursor: pointer;
}
.hamburger-btn img { width: 28px; height: 28px; }
.nav-left { order: 1; }
.nav-right { order: 3; }

/* Tablet / small desktop — shrink fixed widths before they overflow */
@media (max-width: 1100px) {
  .navbar { gap: 40px; }
  .nav { width: auto; }
  .nav ul { gap: 20px; }
  .footer-info { gap: 80px; }
  .product-detail { margin: 80px 60px; gap: 60px; }
  .products { margin-left: 40px; }
  .products-info { gap: 60px; }
  .login-form { margin: 0 80px; }
  .checkout-info { gap: 40px; margin: 30px; }
}

/* Mobile — 768px and below */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .container { padding: 16px 20px; }
  section { margin: 40px 16px; }

  /* Navbar */
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 8px 0;
  }
  .navbar .logo { order: 1; }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
  }
  .nav-left,
  .nav-right {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar.menu-open .nav-left,
  .navbar.menu-open .nav-right { max-height: 300px; }
  .nav { width: 100%; }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 4px;
  }

  /* Footer */
  footer { padding: 40px 20px 20px; }
  .footer-info { flex-direction: column; gap: 24px; }

  /* Welcome section */
  .welcome-info { flex-direction: column; gap: 20px; }
  .welcome-info img { width: 100%; max-width: 400px; margin: 0 auto; display: block; }

  /* Home product slider */
  .product { margin: 40px 0; }

  /* Shop page */
  .products { margin: 0 16px 60px; }
  .products-info { flex-direction: column; gap: 20px; }
  .products-toolbar { flex-wrap: wrap; }
  .product-container .product-card { width: calc(50% - 20px); }
  .product-container .product-image { width: 100%; height: 220px; }

  /* Product detail page */
  .product-detail { flex-direction: column; margin: 30px 16px; gap: 30px; }
  .detail-image img { width: 100%; max-width: 400px; margin: 0 auto; display: block; }
  .detail-text { width: 100%; }

  /* Cart */
  .cart-container { flex-direction: column; padding: 16px 20px; gap: 24px; }
  .shopping-bag { max-width: 100%; }
  .order-summary { position: static; }

  /* Login / Register */
  .login-form { margin: 0 16px; }

  /* Checkout */
  .checkout-info { flex-direction: column; gap: 24px; margin: 20px 16px; }
  .checkout-form { width: 100%; }

  /* About section images */
  .about-images { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .about-images img { width: calc(50% - 5px); margin-right: 0; }
  .lower-img { margin-top: 0; }

  /* Orders list */
  .order-card-header { flex-wrap: wrap; gap: 10px; }
  .orders-list { max-width: 100%; }
}

/* Small mobile — 480px and below */
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }

  .login-form { margin: 0; }
  .about-images img { width: 100%; }
  .product-container .product-card { width: 100%; }
  .product-container .product-image { width: 100%; height: 260px; }

  .nav-button-wl,
  .nav-button-cart,
  .nav-button-profile { height: 42px; padding: 8px 12px; font-size: 14px; }
}
/* Flash messages */
.messages-banner {
  width: 100%;
}
.message-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.message-banner-error   { background-color: #c0392b; color: #fff; }
.message-banner-success { background-color: #27ae60; color: #fff; }
.message-banner-warning { background-color: #e67e22; color: #fff; }
.message-banner-info    { background-color: #2980b9; color: #fff; }
.message-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 0 0 16px;
  line-height: 1;
}
.message-close:hover { opacity: 1; }
