:root {
  --header-height: 96px;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1f1f1f;
  padding-top: var(--header-height);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 8px;
}


.social-icons {
  display: flex;
  gap: 18px;
}
.social-icons img {
  width: 22px;
  opacity: 0.85;
  transition: transform 0.3s, opacity 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Ensure cart wrapper is positioned relative even when Bootstrap utilities are not loaded */
.cart-wrapper {
  position: relative;
}

/* HERO */
.hero-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 230px);
  gap: 18px;
}

@media (max-width: 768px) {
  .hero-collage {
    display: grid;
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto;
    gap: 12px;
  }

  /* Hide all tiles except the intro */
  .hero-collage .tile:not(.tile-intro) {
    display: none;
  }

  /* Make intro tile take full width */
  .tile-intro {
    grid-column: 1 / -1; /* full width */
    grid-row: auto;
  }

  .tile-intro img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f6f6f6;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  z-index: 5;
}
.tile img, .tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile video {
  pointer-events: none;
}
.tile-small { grid-column: span 1; grid-row: span 1; }
.tile-horizontal { grid-column: span 2; }
.tile-vertical { grid-row: span 2; }
.tile-intro { grid-column: 2 / span 2; grid-row: 2 / span 2; }
/* CTA button */
.tile-cta {
  position: absolute;
  bottom: 20px;
  right: 20px;

  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 10px 18px;
  border-radius: 10px;

  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.tile-cta .arrow-icon {
  transition: transform 0.3s ease;
}
.tile-cta:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.tile-cta:hover .arrow-icon {
  transform: translateX(6px);
}


/* Hero Section Padding */
#hero {
  padding-top: 20px;  /* space above hero */
  padding-bottom: 20px; /* space below hero */
  padding-left: 20px; /* horizontal padding */
  padding-right: 20px; /* horizontal padding */
}


/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 0 30px; /* <-- add horizontal padding */
  margin: 0 auto;  /* center the gallery */
}


.gallery-item {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}
.gallery-item.hidden {
  display: none;
  opacity: 0;
  transform: translateY(30px);
}
.gallery-item:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  z-index: 20;
}
.gallery-item.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 5000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  text-align: center;
}
.lightbox.show {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Contact */
.contact-form {
  max-width: 520px;
  margin: 40px auto 20px; /* increased spacing from gallery and footer */
  padding: 0 20px;
  display: grid;
  gap: 20px;
}
@media (max-width: 480px) {
  .contact-form {
    padding: 0 24px;
  }
}


.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 12px 8px;
  font-size: 1rem;
  background: #fafafa; /* subtle background */
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  outline: none;
}

.contact-form button {
  margin-top: 20px;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #333;
}

#contact h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #222;
}
#contact h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #222;
}

#contact p {
  font-size: 1rem;
  color: #222;
  margin-bottom: 30px;
}


#loadMore {
  margin-bottom: 50px; /* ensures gap between gallery and contact form */
}



/* Footer */
footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid #eee;
}

.contact-section {
  background: url('../images/contact-bg.jpg') no-repeat center center; /* path to your image */
  background-size: cover;
  padding: 80px 0 40px; /* adjust vertical padding as needed */
  color: #111; /* ensures text is readable on background */

}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
  background: rgba(255,255,255,0.9); /* light transparent background for form fields */
  color: #000;
}
.contact-section .contact-form button {
  background: #000;
  color: #fff;
  font-weight: bold;
}

.main-nav {
  display: flex;
  flex-wrap: wrap; /* allows wrapping on small screens */
  justify-content: center; /* center on mobile */
  gap: 18px;
  margin-left: auto;
  margin-right: auto;
}


/* Navigation hover pop */
.main-nav a {
  margin-right: 32px;
  text-decoration: none;
  font-weight: 400;          /* lighter */
  color: rgba(0, 0, 0, 0.75); /* slightly muted */
  transition: transform 0.3s, color 0.3s;
}

.main-nav a:hover {
  transform: scale(1.2);
  color: rgba(0, 0, 0, 0.9); /* slightly stronger on hover */
}

.brand a {
  display: inline-block;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;        /* lighter than default */
  font-size: 1.1rem;       /* slightly smaller */
  color: rgba(0, 0, 0, 0.85); /* subtle dark gray instead of full black */
  text-decoration: none;
}

.logo {
  height: 30px; /* adjust as needed */
  width: auto;
  vertical-align: middle;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.1);
}
html {
  scroll-behavior: smooth;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .header-inner {
    padding-top: 5px;
    flex-direction: column;
    padding-bottom: 10px;
    gap: 2px;
  }

  .main-nav {
    justify-content: stretch;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Contact submit spinner */
.submit-btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  margin: 0 auto;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Circular photo */
.about-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: #f6f6f6; /* subtle background for empty space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ✅ SHOW FULL IMAGE */
}


@media (max-width: 767px) {
  .about-photo {
    width: 220px;
    height: 220px;
  }
}



/* About Me Text Styling */
.about-hero {
  background: #fdfaf7; /* soft background */
  text-align: center;
  padding: 60px 20px;
}

.about-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
}

.about-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

/* Story Section */
.about-story {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.8;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333;
}

.about-story p {
  margin-bottom: 24px;
}

.about-story a {
  color: #000;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s;
}

.about-story a:hover {
  color: #555;
}

/* Optional: subtle section dividers */
.about-story p + p {
  border-top: 1px solid #eee;
  padding-top: 24px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .about-hero h1 {
    font-size: 1.8rem;
  }
  .about-hero p {
    font-size: 1rem;
  }
  .about-story {
    padding: 30px 15px;
    font-size: 0.95rem;
  }
}
.category-section {
  padding: 80px 0;
}

.category-row {
  margin-bottom: 60px;
  font-family: 'Libre Baskerville', serif; /* or 'Playfair Display', serif */
  font-size: 1rem;
  font-weight: 500;  /* lighter for elegance */
  color: #222;
}

.category-grid {
  --cols: 5; /* visible items */
  --arrow-space: 26px; /* space reserved for the arrow */
  --gap: 20px;
  display: grid;
  gap: var(--gap);
  align-items: center;
  position: relative;
  /* single visual row: place items into columns; extra items create additional columns and are hidden */
  grid-auto-flow: column;
  /* account for gaps when calculating column width so only whole columns fit */
  grid-auto-columns: calc((100% - var(--arrow-space) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  overflow: hidden; /* hide overflow columns so only first --cols are visible */
  padding-right: var(--arrow-space);
}

/* Breakpoints: reduce visible columns on smaller screens */
@media (max-width: 1199px) {
  .category-grid { --cols: 4; --arrow-space: 48px; }
}
@media (max-width: 767px) {
  .category-grid { --cols: 2; --arrow-space: 48px; }
}
@media (max-width: 479px) {
  .category-grid { --cols: 2; --arrow-space: 20px; }
}

/* category images use the shared square thumbnail rules */
.category-grid img,
.product-grid img,
.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Hide extra images so only whole thumbnails are visible (no half-image) */
/* Default: show 4 images */
.category-grid img:nth-of-type(n+6) { display: none; }

@media (max-width: 1199px) {
  /* show 3 images */
  .category-grid img:nth-of-type(n+5) { display: none; }
  .category-grid img:nth-of-type(-n+4) { display: block; }
}
@media (max-width: 767px) {
  /* show 2 images */
  .category-grid img:nth-of-type(n+3) { display: none; }
  .category-grid img:nth-of-type(-n+2) { display: block; }
}
@media (max-width: 479px) {
  /* show 1 image */
  .category-grid img:nth-of-type(n+3) { display: none; }
  .category-grid img:nth-of-type(-n+2) { display: block; }
}

@media (max-width: 767px) {
  .category-grid img,
  .product-grid img,
  .photo-grid img {
    max-width: none;
  }
}

.category-arrow {
  display: flex;
  align-items:end;
  gap: 8px;
  position: absolute;
  right: 16px;
  cursor: pointer; 

  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.category-arrow .arrow-icon {
  transition: transform 0.3s ease;
}

.category-arrow:hover {

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-arrow:hover .arrow-icon {
  transform: translateX(6px);
}


/* Keep the right-arrow visible at the end of each category row */
.category-row { position: relative; }
.category-row .category-arrow {
  position: absolute;
  right: 28px;
  top: 80%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 5;
}
.page-intro {
  padding: 80px 20px 40px;
  font-family: 'Libre Baskerville', serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 80px;
}

.product-card {
  text-align: center;
}

/* Product item: place price & Add-to-cart centered below the image */
.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.product-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.product-overlay {
  position: static; /* flow below image */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 6px 0;
  pointer-events: auto;
  background: transparent;
}
.product-overlay-inner {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.product-overlay .product-price {
  color: #222;
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.product-overlay .add-to-cart {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .product-overlay-inner { padding: 0; }
  .product-overlay .product-price { font-size: 0.95rem; }
  .product-overlay .add-to-cart { padding: 7px 10px; font-size: 0.95rem; }
}

/* product-card images use the shared .product-grid img rules above */

.product-card button {
  margin-top: 12px;
  padding: 10px 18px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 10px;
}

/* cart and contact styles are defined further below (kept single source)
   — small/duplicate blocks removed during cleanup */

#cartCount {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-page {
  max-width: 700px;
  margin: 120px auto 80px;
  padding: 30px;
  background: #fdfaf7;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.cart-page h1 {
  font-family: 'Libre Baskerville', serif;
  margin-bottom: 20px;
}

#cartItems p {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#cartTotal {
  font-weight: bold;
  margin-top: 20px;
  font-size: 1.1rem;
}

.cart-page select,
.cart-page textarea {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#paypal-button-container {
  margin-top: 30px;
}

#shippingMsg {
  margin-top: 15px;
  font-style: italic;
  color: #555;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 60px 30px;
}

.shop-item {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.shop-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.shop-item button {
  margin-top: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
.site-header, footer {
  width: 100%;          /* background stretches full width */
  background: #fff;     /* header background */
  box-sizing: border-box;
  padding-bottom: 10px;
}

.header-inner, footer .container {
  max-width: 1200px;    /* or whatever width your design uses */
  margin: 0 auto;       /* centers the content */
  padding: 0 20px;      /* optional side padding */
}
@media (max-width: 767px) {
  .header-inner {
    flex-direction: column;
    padding: 10px 10px;
  }

  .main-nav {
    justify-content: stretch;
    gap: 12px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }
}
/* Hide mobile menu icon by default */
.mobile-menu-icon {
  display: none;
}

/* Mobile Side Console */
.mobile-side-console {
  position: fixed;
  top: 0;
  left: -250px; /* hidden initially */
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 80px;
}

.mobile-side-console.active {
  left: 0;
}

.mobile-side-console ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-side-console li {
  margin: 20px 0;
  text-align: center;
}

.mobile-side-console a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .main-nav {
    display: none; /* hide desktop menu */
  }

  .mobile-menu-icon {
    display: flex;
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    left: 8px;   /* use 8px if you want it tighter */
  }

  /* Optional: adjust spacing of social icons on mobile */
  .social-icons img {
    width: 24px;
    margin-right: 10px;
  }
}
/* Header fixes */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* align items to bottom on desktop */
  flex-wrap: wrap;
  height: 100%;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .site-header {
      height: auto;
      overflow: visible;
      padding-top: env(safe-area-inset-top);
    }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    gap: 8px; /* space between logo and social icons */
  }
    .brand {
    margin-bottom: 4px;
  }

  .social-icons {
    gap: 12px;
    justify-content: center;
  }

  .main-nav {
    display: none !important;  /* <- ensures nav disappears */
  }

  .social-icons {
    margin: 0;
    gap: 12px;
  }
}

/* Mobile Side Console */
.mobile-side-console {
  position: fixed;
  top: 0;
  left: -260px; /* hidden offscreen */
  width: 260px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.25);
  transition: left 0.3s ease;
  z-index: 1050;
  padding-top: var(--header-height);
}

.mobile-side-console.active {
  left: 0;
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1040;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-side-console ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

.mobile-side-console li {
  margin: 16px 0;
  text-align: center;
}

.mobile-side-console a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.mobile-side-console a:hover {
  color: #000;
}

/* Optional: adjust logo and social icons size on mobile */
@media (max-width: 480px) {
  .logo {
    height: 26px;
  }
  .social-icons img {
    width: 20px;
  }
}
.text-divider {
  font-family: 'Libre Baskerville', serif; /* or 'Playfair Display', serif */
  font-size: 1rem;
  font-weight: 40;  /* lighter for elegance */
  color: #222;
  margin-top: 40px; /* adjust the value as needed */
  margin-bottom: -50px; /* reduced space below the section */

}
@media (max-width: 767px) {
  .text-divider {
    margin-top: 20px;   /* smaller top margin on mobile */
    margin-bottom: -55px; /* smaller bottom margin on mobile */
  }
}


.cart-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffefd5; /* soft cream */
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  z-index: 9999;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
