/* ============================================
   Artist Website — Minimalist Gallery Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --white: #fff;
  --gray: #888;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --font: 'Heebo', sans-serif;
}

html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  direction: rtl;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
  transition: color 0.2s;
}

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

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--black); color: var(--black); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* ---- Main Content ---- */
main { flex: 1; }

/* ---- Filter Tabs ---- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  padding: 2px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
}

.gallery-item:hover .overlay { background: rgba(0,0,0,0.3); }

.gallery-item .caption {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s;
}

.gallery-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lightbox img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  border: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.6; }

.lightbox-prev, .lightbox-next {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.2s;
  user-select: none;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 0.6; }

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- About Page ---- */
.about-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  border: none;
}

.about-text h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

/* ---- Contact Page ---- */
.contact-section {
  max-width: 560px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.contact-section h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.2s;
  direction: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group .error-msg {
  display: none;
  color: #c00;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-group.has-error input,
.form-group.has-error textarea { border-color: #c00; }

.form-group.has-error .error-msg { display: block; }

.submit-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: #333; }

.form-success {
  display: none;
  background: var(--light-gray);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ---- Page Title (Gallery) ---- */
.page-intro {
  padding: 3rem 2rem 1rem;
  text-align: center;
}
.page-intro h1 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ---- Shop Page ---- */
.shop-subtitle {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-weight: 300;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.shop-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.shop-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.shop-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--light-gray);
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.shop-card:hover .shop-card-img img { transform: scale(1.04); }

.shop-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shop-card-title {
  font-size: 1rem;
  font-weight: 500;
}

.shop-card-meta {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 300;
}

.shop-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.shop-card-status {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 0.2rem;
  width: fit-content;
}
.status-available { background: #e8f5e9; color: #2e7d32; }
.status-sold { background: #fce4ec; color: #c62828; }

/* ---- Product Modal ---- */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.product-modal.open { display: flex; }

.product-modal-inner {
  background: var(--white);
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
  z-index: 1;
}
.modal-close:hover { color: var(--black); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img-wrap {
  background: var(--light-gray);
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-info h2 {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.modal-meta { font-size: 0.85rem; color: var(--gray); }
.modal-price { font-size: 1.6rem; font-weight: 700; margin-top: 0.4rem; }

.modal-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: #555;
  flex: 1;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5d; }

.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--black);
  padding: 11px 20px;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-email:hover { border-color: var(--black); }

/* ---- Shop Contact Page ---- */
.shop-contact-section {
  max-width: 520px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.shop-contact-section h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.shop-contact-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.shop-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.shop-contact-actions .btn-whatsapp,
.shop-contact-actions .btn-email {
  width: 100%;
  max-width: 320px;
}

.modal-note {
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap { max-height: 260px; }
  .modal-info { padding: 1.5rem 1.2rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1rem; }
}

/* ---- LTR Override ---- */
html[dir="ltr"] {
  direction: ltr;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  header { padding: 0 1rem; }

  nav.desktop-nav { display: none; }
  nav.desktop-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; right: 0; left: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; }
  .hamburger { display: flex; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .about-section { grid-template-columns: 1fr; gap: 2rem; }

  .lightbox img { max-width: 95vw; }
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { padding: 1rem; }
}
