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

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  background-color: white;
  color: black;
  transition: opacity 0.7s ease-in-out;
  opacity: 1;
}

main-header {
  display: block;
  width: 100%;
}
header {
  width: 100%;
  z-index: 1
}

.header-inner {
    max-width: 100%; /* Ensure this isn't constrained */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* Match the padding on your other pages */
    box-sizing: border-box;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.logo-mark {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

.page-title {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.page-title h1 {
  font-size: 18px;
  letter-spacing: .35em;
  font-weight: 400;
}

.subtitle {
  font-size: 14px;
  letter-spacing: .2em;
  margin-top: 6px;
  opacity: .7;
}

.nav a, .nav-link {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav a {
  font-size: 12px;
  letter-spacing: .15em;
  margin-left: 30px;
  text-transform: uppercase;
  color: inherit;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav a:hover {
  opacity: .5;
}

.nav a.active {
  border-bottom: 1px solid currentColor;
  opacity: 1;
}

.home-page header {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  padding: 60px 0;
}

.home-page .header-inner {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.home-page .nav a {
  margin: 0 20px;
}

.gallery-page header {
  position: relative; /* Prevents overlapping content */
  background: white;
  color: black;
  padding: 30px 0;
}

.gallery-page .header-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
}

.gallery-page .logo {
  align-items: flex-start;
  text-align: center;
}

.gallery-page .logo-mark {
  height: 40px;
}

/* Container to keep the overlay clipped to the image edges */
.category-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.4s ease;
  z-index: 2;
}

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

.image-count {
  color: white;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px 20px;
}

.hero {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slides img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.slides img.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.25);
}

.cta {
  position: absolute;
  bottom: 42%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.cta a {
  border: 1px solid white;
  padding: 18px 36px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cta a:hover{
  background: rgba(255, 255, 255, 0.5);
  border: white;
  color:black;
}

.gallery {
  max-width: 1100px;
  margin: 60px auto 120px auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.gallery-full-collection {
  max-width: 1600;
  margin: 60px auto 120px auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.category {
  position: relative;
  display: block;
  text-decoration: none;
}

.category img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.category:hover img {
  transform: scale(1.03);
}

.category h2 {
  margin-top: 14px;
  color: black;
  font-size: 14px;
  letter-spacing: .10em;
  font-weight: 300;
}

.about-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 60px;
  gap: 80px;
  align-items: flex-start;
}

.about-image, .about-text {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h1 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.8;
}

body, #detail-view, #category-grid {
  transition: opacity 0.7s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

#detail-content.photo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 50%;
  margin: 0 auto;
  gap: 100px;
  padding: 30px 0 120px 0;
}

.photo-item { 
  width: 100%; 
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-controls {
  max-width: 50%;
  margin: 0px auto;
  text-align: left;
}

.detail-controls a {
  text-decoration: none;
  color: black;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.detail-controls a:hover {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center; 
  gap 30px;   
}

.nav-dropdown {
  position: relative;
  display: inline-flex; 
  align-items: center;
  margin-left: 30px;
  height: 100%;
}

.nav-link {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  display: inline-block;
}

.nav-dropdown.active-menu .nav-link {
  border-bottom: 1px solid currentColor;
}

.nav-dropdown.active-menu .dropdown-content {
  display: block !important;
  position: absolute;
  top: 100%; 
  right: 0;
  padding: 10px;
  min-width: 150px;
}

.nav-dropdown.active-menu .dropdown-content a {
  padding: 10px 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 150px;
  padding: 10px 0;
  text-align: right;
  z-index: 1000;
}

.photo-link {
  display: block;
  width: 100%;
  cursor: pointer;
}

.photo-item img {
  transition: opacity 0.5s ease;
}

.about-wrapper.print-layout{
  max-width: 1600px
}

.print-layout .about-image {
  flex: 2;
  max-width: 65%;
}

.print-layout .about-text{
  flex: 1;
  min-width: 300px;
}

.print-description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 20px 0;
    font-weight: 300;
    max-width: 400px; /* Keeps lines from getting too long to read */
}

#main-print-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.print-controls {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#size-selector {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  background: white;
  cursor: pointer;
}

.price-display {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.buy-button {
  display: inline-block;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  background: black;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  transition: opacity 0.3s ease;
}

.buy-button:hover {
  background: #333;
  opacity: 0.8;
}

#purchase-button {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

#purchase-button.added {
  background-color: #000;
  color: #fff;
  pointer-events: none;
}

#purchase-button:active {
  transform: scale(0.98);
}

.print-description {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.6;
  margin-bottom: 40px;
}

.bag-bubble {
  position: relative;  
  top: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  margin-left: 10px;
}

.bag-icon-container {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #eee;
  padding-right: 10px;
}

.bag-count {
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: #000;
}

/* Price Section */
.bag-total-container {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #666;
  min-width: 45px; 
}

.bag-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  cursor: pointer;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 4000;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px; /* Standard desktop width */
  height: 100dvh;
  background: #fff;
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.cart-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.cart-item-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.remove-item {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 0;
}

.remove-item:hover { color: #000; }

.cart-item-meta {
  font-size: 11px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.cart-item-image {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 500;
}

.empty-msg {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top;
}

.qty-wrapper {
    cursor: pointer;
    transition: color 0.2s ease;
}

.qty-wrapper:hover {
    color: #000;
    text-decoration: underline;
}

.qty-edit-input {
    width: 40px;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 11px;
    padding: 2px 4px;
    outline: none;
    text-align: center;
    margin-left: 4px;
}

/* Hide the up/down arrows (spinners) for a cleaner look */
.qty-edit-input::-webkit-inner-spin-button,
.qty-edit-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.cart-footer {
  padding: 30px;
  border-top: 1px solid #eee;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.checkout-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.checkout-btn:hover { opacity: 0.8; }

.confirmation-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.confirmation-container h1 {
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.confirmation-container p {
    font-weight: 300;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}
.back-link {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}
.back-link:hover {
    opacity: 0.5;
}

.error-dialog {
    margin: auto; 
    position: fixed;     
    border: 1px solid #eee;
    padding: 40px;
    max-width: 400px;
    width: 85%;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.error-close-btn {
    background: #000;
    color: #fff;
    border: none;
    outline: none;
    margin-top: 20px;
    padding: 12px 30px;
    width: 100%; 
    font-family: inherit; 
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-close-btn:hover {
    background: #444; 
    letter-spacing: 3px; }

.error-dialog h3 {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.error-dialog p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.error-dialog::backdrop {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
      
@media (max-width: 600px) {
  .cart-drawer { width: 100%; } /* Full screen on mobile */
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .subtitle {
    font-size: 11px;
    letter-spacing: .15em;
    line-height: 1.4;
    margin: 6px auto 0 auto;
  }
  
  .page-title {
    margin: 15px 0;
    font-size: 18px;
  }
  
  .gallery {
    margin: 20px 0;
  }
  
  .gallery-page .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
  }
  
  .gallery-page .logo {
    align-items: center;
    text-align: center;
  }
  
  .nav-dropdown {
    margin-left: 0 !important; 
  }

  .nav a {
    margin: 0 15px !important;
  }
  
  .nav a:first-child {
    margin: 0 15px 0 0 !important;
  }
  
  .nav-dropdown {
    margin: 0 0 0 7px !important;
  }
  
  .nav-dropdown.active-menu .dropdown-content a {
    display: block;
    text-align: right;
    margin: 10px 0 !important;
    width: 100%;
    padding: 0;
  }
  
  .nav-dropdown.active-menu .dropdown-content {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    padding: 10 !important;
  }
  
  .gallery, #category-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }
  
  .category h2 {
    font-size: 13px;
    margin-top: 10px;
  }

  .gallery-page .header-inner {
    padding: 0 30px;
  }

  #detail-content.photo-grid {
    max-width: 90%;
    gap: 50px;
  }
  
  .detail-controls {
    width: 90%;
    max-width: 1200px; 
    margin-bottom: 0px;
    display: flex;
    justify-content: flex-start;
  }
  
  .about-wrapper.print-layout{
    margin: 60px 0;
  }
  
  .print-layout {
    flex-direction: column;
  }
  
  .print-layout .about-image,
  .print-layout .about-text {
    max-width: 100%;
    flex: none;
  }
  
  .bag-bubble {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    padding: 10px 25px;
    height: 35px;
    width: 35px;
    justify-content: center;
  }
  
  .bag-total-preview,
  .bag-total-container {
    display: none !important;
  }
  
  .bag-icon-container {
    border-right: none;
    padding-right: 0;
    gap: 4px;
  }
  
  .logo {
    margin-right: 0;
  }
}

@keyframes bag-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.05); border-color: #000; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.bag-animate {
  animation: bag-pulse 0.6s ease-out;
}