@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-color: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-dark: #2C2926;
  --text-muted: #7A7067;
  --text-light: #A39B91;
  --accent-coral: #C47A5A;
  --accent-coral-light: #D4927A;
  --accent-teal: #3B8A8A;
  --accent-teal-light: #5AADAD;
  --accent-gold: #BFA06A;
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(44, 41, 38, 0.06);
  --shadow-soft: 0 2px 20px rgba(44, 41, 38, 0.06);
  --shadow-hover: 0 12px 40px rgba(44, 41, 38, 0.1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --radius-soft: 12px;
  --radius-btn: 8px;
  --radius-pill: 50px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ============================================
   BASE LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-subtext {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-teal);
  margin-top: 2px;
}

/* Desktop Nav */
nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-coral);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--text-dark);
}

/* Hamburger Button (mobile only) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
  z-index: 210;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.hamburger-btn .icon-close {
  display: none;
}

.hamburger-btn.open .icon-menu {
  display: none;
}

.hamburger-btn.open .icon-close {
  display: block;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 41, 38, 0.3);
  z-index: 190;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-drawer a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-dark);
  padding: 18px 0;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-nav-drawer a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background-color: var(--accent-coral);
  transition: width 0.3s ease;
}

.mobile-nav-drawer a:hover::after,
.mobile-nav-drawer a.active::after {
  width: 40px;
}

.mobile-nav-drawer a:hover {
  color: var(--accent-coral);
}

/* Cart Icon */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 8px;
  color: var(--text-dark);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-coral);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-teal);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--text-dark);
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   PRODUCT / PORTFOLIO GRID
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding-bottom: 80px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-img-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: #F0ECE6;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover .card-img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.badge.one-of-a-kind {
  background-color: var(--accent-gold);
  color: white;
}

.badge.out-of-stock {
  background-color: #B87070;
  color: white;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  background-color: var(--text-dark);
  color: white;
  border: none;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  background-color: var(--accent-coral);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: white;
}

.btn-disabled {
  background-color: #D5CFC7;
  color: #A39B91;
  cursor: not-allowed;
}

.btn-disabled:hover {
  background-color: #D5CFC7;
}

/* ============================================
   EVENTS
   ============================================ */

.event-card {
  background: white;
  border-left: 3px solid var(--accent-teal);
  padding: 24px 28px;
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.event-details h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.event-date {
  color: var(--accent-coral);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.event-location {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   SLIDE CART DRAWER
   ============================================ */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: white;
  box-shadow: -8px 0 30px rgba(44, 41, 38, 0.08);
  z-index: 200;
  transition: right 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

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

.cart-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.cart-close-btn:hover {
  color: var(--text-dark);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px 28px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F0ECE6;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  color: var(--accent-coral);
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid #E5DED5;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #B87070;
  font-size: 11px;
  cursor: pointer;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #8B4F4F;
}

.cart-footer-panel {
  padding: 24px 28px;
  border-top: 1px solid #F0ECE6;
  background-color: #FCFAF7;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 41, 38, 0.35);
  z-index: 150;
  display: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cart-overlay.open {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
  font-size: 12px;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  letter-spacing: 0.3px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent-coral);
}

/* ============================================
   ADMIN STYLES
   ============================================ */

.admin-mobile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  background-color: #F4F2EF;
  min-height: 100vh;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .admin-mobile-container {
    max-width: 960px;
    padding: 32px 40px;
  }
}

@media (min-width: 1100px) {
  .admin-mobile-container {
    max-width: 1100px;
  }
}

.admin-header {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 400;
}

.admin-card {
  background: white;
  border-radius: var(--radius-soft);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.admin-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-input,
.admin-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E5DED5;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 18px;
  outline: none;
  background-color: #FAF8F5;
  transition: border-color 0.3s, background-color 0.3s;
}

.admin-input:focus,
.admin-textarea:focus {
  border-color: var(--accent-teal);
  background-color: white;
}

.photo-uploader {
  border: 2px dashed #D5CFC7;
  border-radius: var(--radius-soft);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  background-color: #FAF8F5;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.photo-uploader:hover {
  border-color: var(--accent-teal);
}

.photo-uploader svg {
  width: 36px;
  height: 36px;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.photo-preview {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

.photo-uploader.has-image svg,
.photo-uploader.has-image p {
  display: none;
}

.photo-uploader.has-image .photo-preview {
  display: block;
}

.toggle-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
  gap: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D5CFC7;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-teal);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F0ECE6;
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-list-item-info {
  flex-grow: 1;
  min-width: 0;
}

.admin-list-item-title {
  font-weight: 500;
  font-size: 14px;
}

.admin-list-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.delete-btn-icon {
  background: none;
  border: none;
  color: #B87070;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.delete-btn-icon:hover {
  color: #8B4F4F;
}

.edit-btn-icon {
  background: none;
  border: none;
  color: var(--accent-teal);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.edit-btn-icon:hover {
  color: #2A6A6A;
}

.edit-banner {
  background: var(--accent-teal);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.edit-banner button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
}

.edit-banner button:hover {
  background: rgba(255,255,255,0.3);
}

/* ============================================
   MAINTENANCE MODE STATUS
   ============================================ */

.maintenance-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: #FAF8F5;
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.maintenance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D5CFC7;
  transition: background-color 0.3s ease;
}

.maintenance-dot.active {
  background-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(59, 138, 138, 0.2);
}

/* ============================================
   RESPONSIVE: TABLET (<= 900px)
   ============================================ */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ============================================
   RESPONSIVE: MOBILE (<= 768px)
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Hide desktop nav, show hamburger */
  nav.desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-container {
    height: 64px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-subtext {
    font-size: 8px;
    letter-spacing: 2.5px;
  }

  /* Hero — link-in-bio feel: compact, centered */
  .hero {
    padding: 48px 0 36px;
  }

  .hero-title {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero-description {
    font-size: 14px;
    max-width: 360px;
  }

  /* Single column grid — stacked cards */
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 60px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-desc {
    font-size: 13px;
  }

  /* Bigger touch targets on mobile */
  .btn {
    padding: 14px 28px;
    font-size: 12px;
  }

  /* Cart drawer — full screen on mobile */
  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .cart-header {
    padding: 20px 24px;
  }

  .cart-items-container {
    padding: 20px 24px;
  }

  .cart-footer-panel {
    padding: 20px 24px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  /* Events — stack vertically */
  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
  }

  .event-card .btn {
    align-self: flex-start;
  }

  /* Footer */
  footer {
    padding: 36px 20px;
    margin-top: 20px;
  }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (<= 400px)
   ============================================ */

@media (max-width: 400px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-description {
    font-size: 13px;
  }

  .grid {
    gap: 20px;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-footer .btn {
    width: 100%;
  }

  .mobile-nav-drawer a {
    font-size: 24px;
  }
}
