/* --- Roja Beauty - Cosmetics Theme --- */
:root {
  --font-main: 'Vazirmatn', system-ui, sans-serif;
  
  /* Palette: Rose Gold / Soft Pink / White */
  --color-primary: #F43F5E; /* Rose */
  --color-primary-light: #FB7185;
  --color-primary-dark: #BE123C;
  
  --color-secondary: #881337; /* Dark Burgundy for text */
  --color-text-main: #374151; /* Dark Gray */
  --color-text-muted: #6B7280;
  
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #FFF1F2; /* Very Light Pink */
  
  --color-border: #FECDD3; /* Light Rose Border */
  
  --shadow-sm: 0 1px 3px rgba(244, 63, 94, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(244, 63, 94, 0.1), 0 2px 4px -1px rgba(244, 63, 94, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(244, 63, 94, 0.1), 0 4px 6px -2px rgba(244, 63, 94, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --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: 92%; max-width: 1300px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.bg-soft-pink { background-color: var(--color-surface-alt); }

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

.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-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(244, 63, 94, 0.39);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.23);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-surface-alt);
}

.btn-block { width: 100%; }

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

/* --- Header Redesign (Minimal & Chic) --- */
.top-bar {
  background-color: var(--color-secondary);
  color: white;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  font-weight: 400;
}

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

.top-links { display: flex; align-items: center; gap: 1.2rem; }
.top-links a { color: rgba(255,255,255,0.9); font-size: 0.8rem; }
.divider { opacity: 0.3; }

.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

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

/* Logo */
.header-logo-area { display: flex; align-items: center; gap: 1rem; flex: 1; }
.logo { display: flex; align-items: center; gap: 0.5rem; color: var(--color-secondary); }
.logo-icon-simple { color: var(--color-primary); width: 28px; height: 28px; }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

/* Desktop Nav (Centered) */
.desktop-nav {
  display: flex;
  gap: 2rem;
  flex: 2;
  justify-content: center;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* Actions (Minimal) */
.header-actions-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex: 1;
}

.search-trigger {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  gap: 0.5rem;
  color: #9CA3AF;
  width: 180px;
  transition: all 0.3s;
}
.search-trigger:focus-within {
  background: white;
  box-shadow: 0 0 0 2px var(--color-border);
  color: var(--color-text-main);
}
.search-trigger input {
  border: none; background: transparent; outline: none; width: 100%;
  font-family: inherit; font-size: 0.9rem;
}
.search-trigger i { width: 18px; }

.action-divider { width: 1px; height: 24px; background: #E5E7EB; margin: 0 0.5rem; }

/* Minimal Cart Button */
.cart-btn-minimal {
  position: relative;
  transition: transform 0.2s;
}
.cart-btn-minimal:hover { transform: scale(1.1); }
.cart-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}

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

/* --- Hero Beauty (Fixed) --- */
.hero-beauty {
  padding: 3rem 0;
  background: linear-gradient(to left, #FFF1F2 0%, #FFFFFF 60%);
  overflow: hidden;
}

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

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

.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; color: var(--color-primary);
  padding: 0.4rem 0.8rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.85rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
}

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

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

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

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

.hero-image-beauty img {
  position: relative; z-index: 1; border-radius: 200px 200px 20px 20px;
  box-shadow: var(--shadow-lg); width: 420px; height: 550px; object-fit: cover;
}

.float-card {
  position: absolute; bottom: 40px; right: -20px;
  background: white; padding: 1rem 1.5rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; z-index: 2;
  border: 1px solid #F3F4F6;
}
.fc-icon {
  width: 40px; height: 40px; background: #ECFDF5; color: #10B981;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.float-card strong { display: block; color: var(--color-text-main); font-size: 0.95rem; }
.float-card small { color: var(--color-text-muted); }

/* --- Categories --- */
.section-spacing { padding: 5rem 0; }
.section-title { margin-bottom: 3rem; position: relative; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: var(--color-secondary); }
.title-underline {
  width: 60px; height: 4px; background: var(--color-primary);
  border-radius: 2px; margin: 0.8rem auto 0;
}

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

.cat-card-beauty {
  text-align: center; cursor: pointer; transition: transform 0.3s;
}
.cat-card-beauty:hover { transform: translateY(-10px); }

.cc-img {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  margin-bottom: 1.5rem; border: 4px solid white; box-shadow: var(--shadow-md);
  position: relative;
}
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card-beauty:hover .cc-img img { transform: scale(1.1); }

.cat-card-beauty h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text-main); }

/* --- Product Grid --- */
.section-header-flex {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem;
}
.section-header-flex h2 { font-size: 1.8rem; font-weight: 700; color: var(--color-secondary); }
.view-all-link { color: var(--color-primary); font-weight: 600; }

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

.product-card-beauty {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.3s; border: 1px solid transparent;
}
.product-card-beauty:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-border);
}

.pcb-img {
  height: 280px; position: relative; overflow: hidden; background: #F9FAFB;
}
.pcb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card-beauty:hover .pcb-img img { transform: scale(1.05); }

.pcb-content { padding: 1.5rem; }
.pcb-cat { font-size: 0.8rem; color: var(--color-primary-light); font-weight: 600; margin-bottom: 0.5rem; }
.pcb-title { font-size: 1.05rem; font-weight: 700; color: var(--color-text-main); margin-bottom: 0.8rem; height: 3rem; overflow: hidden; }
.pcb-footer { display: flex; justify-content: space-between; align-items: center; }
.pcb-price { font-weight: 800; color: var(--color-secondary); font-size: 1.1rem; }

.btn-add-circle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-alt);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-add-circle:hover { background: var(--color-primary); color: white; }

/* --- Features --- */
.features-banner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.feature-box {
  background: white; padding: 2rem; border-radius: var(--radius-md);
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--color-surface-alt);
  transition: transform 0.3s;
}
.feature-box:hover { transform: translateY(-5px); }
.fb-icon {
  width: 60px; height: 60px; background: var(--color-surface-alt); color: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.feature-box h3 { font-weight: 700; margin-bottom: 0.5rem; color: var(--color-secondary); }
.feature-box p { font-size: 0.9rem; color: var(--color-text-muted); }

/* --- Blog --- */
.blog-grid-beauty {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.blog-card-beauty {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.3s;
}
.blog-card-beauty:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bcb-img { height: 200px; }
.bcb-img img { width: 100%; height: 100%; object-fit: cover; }
.bcb-content { padding: 1.5rem; }
.bcb-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--color-text-main); }
.bcb-content p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.bcb-link { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.3rem; }

/* --- Auth --- */
.auth-wrapper {
  background: var(--color-surface-alt); 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-size: cover; background-position: center; }
.auth-form-container { flex: 1; padding: 3rem; }
.auth-head { text-align: center; margin-bottom: 2rem; }
.auth-head h2 { font-size: 1.8rem; font-weight: 800; 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 #E5E7EB;
  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); 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 #F3F4F6;
}
.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 #E5E7EB;
  border-radius: var(--radius-sm); font-family: inherit;
}
.step-badge {
  width: 32px; height: 32px; background: var(--color-primary); 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-alt);
}

/* --- Checkout List Redesign --- */
.checkout-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-left: 0.5rem; /* Space for scrollbar */
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.cir-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E5E7EB;
}

.cir-info {
  flex: 1;
}

.cir-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.cir-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cir-price {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.summary-totals {
  background: #FAFAFA;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.summary-totals .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.summary-totals .divider {
  height: 1px;
  background: #E5E7EB;
  margin: 1rem 0;
  opacity: 1;
}

.summary-totals .total {
  color: var(--color-secondary);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0;
}

.text-green { color: #10B981; font-weight: 600; }

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

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150;
  opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 400px; max-width: 90%;
  background: white; z-index: 200; transform: translateX(-100%);
  transition: transform 0.3s; display: flex; flex-direction: column;
  box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-head { padding: 1.5rem; border-bottom: 1px solid #F3F4F6; 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 #F3F4F6; background: #FAFAFA; }
.cart-item-modern { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid #F3F4F6; padding-bottom: 1rem; }
.cim-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cim-details { flex: 1; }
.cim-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cim-price { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }
.qty-pill { display: flex; border: 1px solid #E5E7EB; border-radius: 2rem; padding: 0 0.5rem; align-items: center; gap: 0.5rem; }

/* --- Mobile --- */
@media (max-width: 992px) {
  .header-inner { justify-content: space-between; }
  .header-logo-area { flex: initial; }
  .header-actions-area { flex: initial; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-trigger { display: none; }
  
  .hero-grid-beauty { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content-beauty { align-items: center; }
  .hero-content-beauty h1 { font-size: 2.5rem; }
  .cat-grid-beauty { 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; }
  .hero-image-beauty img { width: 300px; height: 350px; }
}

/* --- 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; color: var(--color-text-main); }
.mobile-search { display: flex; background: #F3F4F6; 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: white; color: var(--color-text-main);
  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; } }
