@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --main-font: 'Jost', sans-serif;
  --brown: #6b4f3b;
  --brown-dark: #4e3729;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}

body {
  font-family: "Jost", sans-serif;
  background-color: whitesmoke;
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to bottom, white, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  color: black;
  font-size: 18px;
  cursor: pointer;
}

.logo {
  position: relative;
  z-index: 1100;
}

.nav_img {
  height: 90px;
  object-fit: contain;
  position: relative;
  top: 10px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: #f7f5f3;
  padding: 60px 20px 20px;
  color: #333;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2c2c2c;
}

/* FIX 6: scoped footer links instead of global a rule */
.footer-col a {
  display: block;
  text-decoration: none;
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--brown);
  padding-left: 5px;
}

.footer-box {
  border: 1px solid rgba(107, 79, 59, 0.25);
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.info-item span {
  font-size: 18px;
}

.info-item p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.info-item a {
  color: var(--brown);
  text-decoration: none;
  display: inline;  /* keep it inline inside <p> */
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: #666;
}

@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-box { margin-top: 20px; }
}

/* ─── SIDE MENU ──────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: 5px 0 20px rgba(0,0,0,0.1);
  padding: 20px;
  overflow-y: auto;
  transition: 0.35s ease;
  z-index: 100;
  padding-top: 80px;
}

.side-menu.active { left: 0; }
.overlay.active { opacity: 1; visibility: visible; }

.menu-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-box {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.side-menu h4 {
  margin: 10px 0;
  font-weight: 500;
}

/* FIX 7: scoped side-menu links instead of global a */
.side-menu a {
  display: block;
  text-decoration: none;
  color: #555;
  padding: 5px 0;
}

.drop-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  font-family: "Jost", sans-serif;
}

.drop-content {
  display: none;
  padding-left: 10px;
}

.dropdown.active .drop-content {
  display: block;
}

@media (max-width: 768px) {
  .side-menu { width: 75%; left: -75%; }
}

/* ─── CART DRAWER ────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  padding: 20px;
  transition: 0.35s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-drawer.active { right: 0; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

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

.cart-item img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-info h4 {
  font-size: 14px;
  margin: 0;
}
.cart-check {
  width: 16px;
  height: 16px;
  accent-color: var(--brown);
}

.cart-info p {
  font-size: 13px;
  color: var(--brown);
  margin-top: 5px;
}

.cart-info {
  flex: 1;
}

/* META CONTAINER */
.cart-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* QTY BOX */
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  background: #f3f3f3;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
}

.qty-input {
  width: 35px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 13px;
}

/* SIZE DROPDOWN */
.size-select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  font-family: "Jost", sans-serif;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.continue {
  text-align: center;
  text-decoration: none;
  padding: 10px;
  background: #f3f3f3;
  border-radius: 6px;
  color: #333;
  display: block;
}

.checkout {
  padding: 12px;
  border: none;
  background: var(--brown);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-size: 14px;
}

.checkout:hover {
  background: var(--brown-dark);
}

@media (max-width: 768px) {
  .cart-drawer { width: 75%; right: -75%; }
}


/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;

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

  padding-top: 60px;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 200;
}

/* ACTIVE */
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SEARCH BOX */
.search-box {
  width: 60%;
  max-width: 600px;

  background: #f5f5f5;
  border-radius: 30px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 20px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ICONS */
.search-box i {
  font-size: 16px;
  color: #555;
}

/* INPUT */
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-family: "Jost", sans-serif;
}

/* CLOSE ICON */
#searchClose {
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .search-box {
    width: 90%;
  }
}

/* HIDDEN STATE */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* VISIBLE STATE */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* OPTIONAL VARIATIONS */
.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
  transform: translateX(0);
}


/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px; /* slim */
}

::-webkit-scrollbar-track {
  background: transparent; /* hide track */
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 79, 59, 0.6); /* smoky brown */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 79, 59, 0.9);
}

/* ─── AUTH PAGE ───────────────────────── */

.auth-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  padding-top: 80px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 500;
}
/* SWITCH TEXT */
.auth-switch {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

.auth-switch a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* LINKS INSIDE FORM */
.link {
  color: var(--brown);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #444;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--brown);
}

/* CHECKBOX */
.form-check {
  font-size: 13px;
  color: #555;
}

.form-check input {
  margin-right: 6px;
  accent-color: var(--brown);
}

/* BUTTON */
.auth-btn {
  margin-top: 10px;
  padding: 12px;
  border: none;
  background: var(--brown);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.auth-btn:hover {
  background: var(--brown-dark);
}

/* FORGOT PASSWORD */
.forgot-link {
  text-align: right;
  font-size: 13px;
  margin-top: -8px;
}

.forgot-link a {
  text-decoration: none;
  color: var(--brown);
}

.forgot-link a:hover {
  text-decoration: underline;
}


.auth-message {
  margin-top: 12px;
}

.auth-message {
  margin-top: 12px;
}

.auth-message .message {
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* Error style */
.auth-message .error {
  background-color: #ffe5e5;
  color: #d8000c;
  border: 1px solid #ffb3b3;
}

/* Hidden animation */
.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}