/* --- Negarestan - Art Gallery Theme --- */
:root {
  --font-main: 'Vazirmatn', system-ui, sans-serif;
  
  /* Palette: Gold / Charcoal / White */
  --color-primary: #CCA43B; /* Muted Gold */
  --color-primary-dark: #A68225;
  --color-secondary: #1F2937; /* Dark Charcoal */
  
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F9FAFB; /* Very Light Gray */
  --color-surface-gold: #FFFBEB; /* Light Gold Tint */
  
  --color-text-main: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Sharper radius for frames */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  
  --header-height: 80px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.hidden { display: none !important; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.bg-light-gold { background-color: var(--color-surface-gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.btn-primary:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}
.btn-outline:hover {
  background: var(--color-secondary);
  color: white;
}

.btn-block { width: 100%; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: all 0.2s;
}
.icon-btn:hover { background-color: var(--color-surface-alt); color: var(--color-primary); }

/* --- Header --- */
.top-bar {
  background-color: var(--color-secondary);
  color: #D1D5DB;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  letter-spacing: 0.5px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-links a:hover { color: var(--color-primary); }
.divider { opacity: 0.3; }

.header {
  background: var(--color-surface);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-bg {
  width: 38px;
  height: 38px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-secondary);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box-wrapper {
  width: 280px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.search-box:focus-within {
  background: white;
  border-color: var(--color-primary);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cart-pro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  position: relative;
  font-size: 0.9rem;
}

.btn-cart-pro:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-text { font-weight: 500; }

.cart-badge {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-weight: 700;
}

.mobile-menu-btn { display: none; }

/* --- Hero Art --- */
.hero-art {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #FFFFFF, #F9FAFB);
}

.hero-grid-art {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.hero-content-art {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface-gold);
  color: var(--color-primary-dark);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(204, 164, 59, 0.2);
}

.hero-content-art h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.hero-content-art p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.art-frame-showcase {
  position: relative;
  padding: 15px;
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transform: rotate(2deg);
  transition: transform 0.5s;
}

.art-frame-showcase:hover { transform: rotate(0); }

.art-frame-showcase img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.float-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--color-secondary);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  border: 1px solid var(--color-primary);
}
.float-badge strong { font-size: 1.5rem; color: var(--color-primary); line-height: 1; }
.float-badge small { font-size: 0.75rem; opacity: 0.9; }

/* --- Categories --- */
.section-spacing { padding: 5rem 0; }

.section-title { margin-bottom: 3rem; position: relative; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--color-secondary); }
.title-underline {
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  margin: 0.8rem auto 0;
}

.cat-grid-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card-art {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.cat-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.cat-card-art:hover img { transform: scale(1.1); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.cat-overlay h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.3rem;
}

/* --- Product Grid --- */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header-flex h2 { font-size: 1.8rem; font-weight: 700; color: var(--color-secondary); }
.view-all-link { color: var(--color-primary-dark); font-weight: 600; border-bottom: 1px solid transparent; }
.view-all-link:hover { border-color: var(--color-primary-dark); }

.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
}

.product-card-modern {
  background: white;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.product-card-modern:hover {
  transform: translateY(-5px);
}

.pc-img-box {
  height: 320px; /* Taller for art */
  background: #F3F4F6;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 8px solid white; /* Frame effect */
  outline: 1px solid var(--color-border);
}

.pc-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card-modern:hover .pc-img-box img { transform: scale(1.05); }

.pc-content { padding: 1rem 0.5rem; text-align: center; }

.pc-cat {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.pc-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.pc-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pc-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-main);
}

.btn-add-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-add-pill:hover {
  background: var(--color-primary);
  color: white;
}

/* --- Features --- */
.features-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
}

.feature-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.feature-box i {
  color: var(--color-primary);
  width: 36px;
  height: 36px;
}

.feature-box h3 { font-weight: 600; font-size: 1.1rem; color: var(--color-secondary); }
.feature-box p { color: var(--color-text-muted); font-size: 0.9rem; }

/* --- Blog --- */
.blog-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card-modern {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s;
  border: 1px solid var(--color-border);
}

.blog-card-modern:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.bc-img { height: 220px; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; }

.bc-content { padding: 1.5rem; }
.bc-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--color-secondary); }
.bc-content p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.bc-link { color: var(--color-primary-dark); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.3rem; }

/* --- Auth --- */
.auth-wrapper {
  background: #F3F4F6;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  display: flex;
  width: 900px;
  max-width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-side-img {
  flex: 1;
  background: url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?auto=format&fit=crop&w=800&q=80') center/cover;
  position: relative;
}
.auth-side-img::after {
  content: ''; position: absolute; inset: 0; background: rgba(31, 41, 55, 0.3);
}

.auth-form-container {
  flex: 1;
  padding: 3rem;
}

.auth-head { text-align: center; margin-bottom: 2rem; }
.auth-head h2 { font-size: 1.8rem; font-weight: 700; color: var(--color-secondary); }

.input-group { position: relative; margin-bottom: 1.2rem; }
.input-group i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); width: 18px; }
.input-group input {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  outline: none;
  background: #F9FAFB;
}
.input-group input:focus { border-color: var(--color-primary); background: white; }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-switch a { color: var(--color-primary-dark); font-weight: 600; }

/* --- Contact & Checkout --- */
.contact-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.checkout-grid { grid-template-columns: 1.8fr 1fr; }

.contact-info-box, .contact-form-box, .section-card, .summary-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-details li { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-details i { color: var(--color-primary); }

.clean-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.clean-form input, .clean-form textarea {
  width: 100%; padding: 0.8rem; margin-bottom: 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit;
}

.step-badge {
  width: 30px; height: 30px; background: var(--color-secondary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.pay-option {
  display: flex; align-items: center; justify-content: space-between; padding: 1rem;
  border: 1px solid var(--color-primary); border-radius: var(--radius-md); background: var(--color-surface-gold);
}

.summary-totals .total { color: var(--color-secondary); font-size: 1.2rem; font-weight: 700; }
.text-green { color: #059669; font-weight: 600; }

/* --- Footer --- */
.footer-modern {
  background: var(--color-secondary);
  color: #D1D5DB;
  padding: 4rem 0 0;
  margin-top: auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 1rem; }
.footer-bottom { padding: 1.5rem 0; text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 150;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 90%;
  background: white; z-index: 200; transform: translateX(-100%);
  transition: transform 0.3s; display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-head { padding: 1.5rem; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-foot { padding: 1.5rem; border-top: 1px solid var(--color-border); background: var(--color-surface-alt); }
.cart-item-modern { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
.cim-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cim-details { flex: 1; }
.cim-title { font-weight: 600; font-size: 0.9rem; }
.cim-price { color: var(--color-text-muted); font-size: 0.85rem; }
.qty-pill { display: flex; border: 1px solid var(--color-border); border-radius: 2rem; padding: 0 0.5rem; }

/* --- Mobile --- */
@media (max-width: 992px) {
  .header-inner { justify-content: space-between; }
  .header-right { gap: 1rem; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-box-wrapper { display: none; }
  .cart-text { display: none; }
  .btn-cart-pro { padding: 0.6rem; }
  
  .hero-grid-art { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content-art { align-items: center; }
  .hero-content-art h1 { font-size: 2.5rem; }
  .cat-grid-art { grid-template-columns: 1fr 1fr; }
  .auth-card { flex-direction: column; width: 100%; }
  .auth-side-img { height: 150px; }
  .contact-grid, .checkout-grid, .footer-top { grid-template-columns: 1fr; }
}

/* --- Mobile Drawer --- */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: white; z-index: 200; transform: translateX(100%); transition: transform 0.3s; padding: 1.5rem; display: flex; flex-direction: column; }
.mobile-menu-drawer.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav { display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.mobile-search { display: flex; background: var(--color-surface-alt); padding: 0.5rem; border-radius: var(--radius-md); margin-bottom: 2rem; }
.mobile-search input { border: none; background: transparent; width: 100%; outline: none; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 2rem; left: 2rem; background: var(--color-secondary); color: white;
  padding: 1rem 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.75rem; font-weight: 500; z-index: 1000;
  border-right: 4px solid var(--color-primary); animation: slideIn 0.3s;
}
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
