/* ============================================================
   GLOBAL BASE STYLES
============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  overflow-x: hidden;
}



/* ============================================================
   NAVIGATION BAR (STICKY)
============================================================ */
.navbar.sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-btn {
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  padding: 8px 4px;
  transition: opacity 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.6;
}

.logo-img {
  height: 42px;
  width: auto;
  cursor: pointer;
}



/* ============================================================
   SEARCH BAR
============================================================ */

.language-select {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: transparent;
  font-size: 0.95em;
  padding: 6px 8px;
  color: #333;
  cursor: pointer;
}

.language-select:focus {
  outline: none;
  border-color: #888;
}



/* ============================================================
   DROPDOWN (MY ACCOUNT)
============================================================ */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  display: none;
  z-index: 500;
}

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

.dropdown-content a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background: #f5f5f5;
}



/* ============================================================
   OVERLAY SYSTEM (MEGA MENU)
============================================================ */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: #fff;
  z-index: 150;

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.overlay.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.overlay-inner {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 80px;
  padding: 60px 80px;
  box-sizing: border-box;
  position: relative;
}

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

.overlay-column h3 {
  margin-bottom: 10px;
}

.overlay-column a {
  text-decoration: none;
  color: #333;
  font-size: 0.95em;
}

.overlay-column a:hover {
  opacity: 0.7;
}



/* ============================================================
   OVERLAY IMAGE
============================================================ */
.overlay-image {
  margin-left: auto;
  padding: 20px; 
}

.overlay-image img {
  max-height: 70vh;
  object-fit: cover;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  font-size: 28px;
  border: none;
  cursor: pointer;
  opacity: 0.65;
}

.overlay-close:hover {
  opacity: 1;
}



/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
  padding-bottom: 80px;
}

.hero-section {
  text-align: center;
  padding: 40px 0;
}

.hero-image {
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px 10%;
}

.image-grid img {
  width: 100%;
  object-fit: cover;
}



/* ============================================================
   AUTH PAGES (Login / Register)
============================================================ */
.auth-page .main-content {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container {
  max-width: 400px;
  width: 100%;
  padding: 40px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h1 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.8em;
  font-weight: normal;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9em;
  color: #666;
}

.form-group input {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #888;
}

.auth-button {
  padding: 12px;
  font-size: 1em;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.auth-button:hover {
  opacity: 0.8;
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  padding: 12px;
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
  border-radius: 4px;
  font-size: 0.9em;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  padding: 12px;
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
  border-radius: 4px;
  font-size: 0.9em;
  display: none;
}

.success-message.show {
  display: block;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
}

.auth-links a {
  color: #333;
  text-decoration: none;
}

.auth-links a:hover {
  opacity: 0.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
}

.back-link:hover {
  opacity: 0.6;
}

.password-hint {
  font-size: 0.85em;
  color: #666;
  margin-top: -10px;
}


/* ============================================================
   SUBPAGE LAYOUT (Collection pages)
============================================================ */
.subpage-main {
  padding-bottom: 80px;
}

.subpage-hero {
  text-align: center;
  padding: 50px 10% 30px;
}

.subpage-hero h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
  color: #222;
}

.subpage-hero p {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  margin: 0;
  letter-spacing: 0.2px;
}

.placeholder-content {
  padding: 20px 10%;
  text-align: center;
}

.placeholder-box {
  padding: 40px 20px;
  background: #f8f8f8;
  border: 1px dashed #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 0.95rem;
}

/* Prose / about page content */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 10% 40px;
  line-height: 1.7;
  color: #444;
  font-size: 1rem;
}

.page-content p {
  margin: 0 0 1.25em;
}

.page-content p:last-child {
  margin-bottom: 0;
}

/* Material page — product materials showcase */
.material-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 10%;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: #555;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10% 60px;
}

.material-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.material-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.material-swatch {
  height: 120px;
  width: 100%;
  background: var(--material-color, #f0ebe3);
}

.material-card-body {
  padding: 24px;
}

.material-name {
  font-size: 1.15rem;
  font-weight: 500;
  color: #222;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.material-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 14px;
}

.material-used-in {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.material-used-in strong {
  font-weight: 500;
  color: #666;
}

@media (max-width: 768px) {
  .material-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 6% 50px;
  }

  .material-swatch {
    height: 100px;
  }

  .material-card-body {
    padding: 20px;
  }
}


/* ============================================================
   NEW FOOTER LAYOUT — 3 columns (horizontal)
============================================================ */

.footer.extended-footer {
  width: 100%;
  padding: 40px 10% 30px;
  box-sizing: border-box;
  border-top: 1px solid #eee;
  background: #fff;
}

.footer-logo {
  text-align: center;
  margin-bottom: 24px;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  height: 38px;
  width: auto;
  opacity: 0.9;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-row-3col {
  width: 100%;
  padding: 0;
  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  margin-top: 10px;
  gap: 20px;
}

/* Left CS links (one horizontal line) */
.footer-left {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.footer-left a {
  text-decoration: none;
  color: #333;
}

.footer-left a:hover {
  opacity: 0.6;
}

.footer-left span {
  opacity: 0.5;
}

/* Center text */
.footer-center {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
  flex: 1;
}

/* Right social icons */
.footer-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-right svg {
  transition: 0.25s ease;
}

.footer-right svg:hover {
  opacity: 0.6;
  transform: translateY(-2px);
}

/* Mobile stacking */
@media (max-width: 768px) {
  .footer-row-3col {
    flex-direction: column;
    gap: 20px;
    padding: 0 6%;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-right {
    justify-content: center;
  }
}


.social-icons a svg {
  width: 26px;
  height: 26px;
  stroke: #222;          /* luxury black */
  transition: opacity .25s ease, transform .25s ease;
}

.social-icons a:hover svg {
  opacity: 0.6;
  transform: translateY(-2px);
}




/* ============================================================
   PRODUCT GRID MODULE (BAG PAGE)
============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* always 3 on desktop */
  max-width: 1600px;
  margin: 0 auto;
  gap: 60px;
  padding: 60px 10%;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  background: #f2f2f2;
  transition: opacity 0.3s ease;
}

.product-card img:hover {
  opacity: 0.88;
}

.product-name {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  color: #333;
}

.product-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: #555;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.product-price {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.2px;
}



/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Tablet */
@media (max-width: 1024px) {

  .overlay-inner {
    padding: 40px 50px;
    gap: 40px;
  }

  .overlay-image img {
    max-height: 50vh;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 50px;
    padding: 40px 6%;
  }

  .product-card img {
    height: 420px;
  }
}

/* Mobile */
@media (max-width: 600px) {

  .navbar.sticky {
    padding: 10px 16px;
  }

  .nav-left, .nav-right {
    gap: 10px;
  }

  .overlay-inner {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }

  .overlay-image {
    padding: 10px;
    align-self: center;
  }

  .overlay-image img {
    width: 90%;
  }

  /* MOBILE FOOTER */
  .footer-row-3col {
    flex-direction: column !important;
    gap: 25px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  /* MOBILE PRODUCT GRID */
  .product-grid {
    grid-template-columns: 1fr !important;
    padding: 30px 5%;
    gap: 40px;
  }

  .product-card img {
    height: 380px;
  }
}
