/* =========================================================
   DESIGN SYSTEM — E-commerce Cosmetics Store
   ========================================================= */
:root {
  --brand-primary-color:    #ff6b9d;
  --brand-secondary-color:  #ff8fb8;
  --brand-third-color:      #ffd6e8;
  --brand-fourth-color:     #e8527f;
  --brand-accent-color:     #ffe0ee;

  --bg-main:  #fff5f9;
  --bg-card:  #ffffff;
  --text-primary-color:     #1f1f1f;
  --text-secondary-color:   #444444;
  --text-muted-color:       #888888;
  --text-focus-color:       #ff6b8a;
  --text-highlighted-color: #e05575;

  --border-primary-color:     #ffd6e0;
  --border-secondary-color:   #ff8fa3;
  --border-muted-color:       #f0d0d8;
  --border-focus-color:       #ff6b8a;
  --border-highlighted-color: #e05575;

  --radius-sm: 6px;
  --radius-md: 15px;
  --transition: 0.3s ease;
}

/* =========================================================
   DARK MODE
   ========================================================= */
[data-theme="dark"] {
  --bg-main:  #1a0a10;
  --bg-card:  #2a1020;
  --text-primary-color:     #f5e6ea;
  --text-secondary-color:   #d4b8c0;
  --text-muted-color:       #9a7a85;
  --text-focus-color:       #ff8fb8;
  --text-highlighted-color: #ffccd5;
  --border-primary-color:   #4a2030;
  --border-secondary-color: #ff8fb8;
  --border-muted-color:     #3a1828;
  --border-focus-color:     #ff6b9d;
  --border-highlighted-color: #e8527f;
}

/* =========================================================
   DISCOUNT BADGE on cards
   ========================================================= */
.card {
  position: relative;
}

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e8527f;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted-color);
  font-size: 12px;
  margin: 0;
}

.price-new {
  color: var(--brand-primary-color);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

/* =========================================================
   SORT + FILTER TOPBAR
   ========================================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.topbar select {
  width: auto;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border-primary-color);
}

/* =========================================================
   ACTIVE FILTER TAG (like cozmetica price tag with X)
   ========================================================= */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 12px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border-primary-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary-color);
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--text-muted-color);
  font-size: 14px;
  padding: 0;
  margin: 0;
  width: auto;
  cursor: pointer;
  line-height: 1;
}

.filter-tag button:hover {
  color: var(--brand-primary-color);
  background: none;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   ACCORDION FILTER SIDEBAR (categories page)
   ========================================================= */
.filter-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-sidebar {
  width: 220px;
  min-width: 200px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(255,107,157,0.1);
  border: 1px solid #ffe0ee;
  padding: 16px 0;
  flex-shrink: 0;
}

.filter-sidebar h3 {
  padding: 0 16px 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary-color);
  border-bottom: 1px solid #ffe0ee;
  margin-bottom: 0;
}

.accordion-item {
  border-bottom: 1px solid #ffe0ee;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary-color);
  transition: background var(--transition);
  user-select: none;
}

.accordion-header:hover { background: #fff5f9; }

.accordion-header span { font-size: 16px; color: var(--brand-primary-color); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body a {
  display: block;
  padding: 8px 16px 8px 28px;
  font-size: 13px;
  color: var(--text-secondary-color);
  text-decoration: none;
  transition: color var(--transition);
}

.accordion-body a:hover { color: var(--brand-primary-color); }

.accordion-header.active { color: var(--brand-primary-color); background: #fff5f9; }
.accordion-header.active span { transform: none; }

.filter-sidebar-bottom {
  padding: 14px 16px 4px;
}

.filter-sidebar-bottom input {
  margin-bottom: 8px;
}

.filter-products-area { flex: 1; }

@media (max-width: 768px) {
  .filter-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; min-width: unset; }
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary-color);
}

html { scroll-behavior: smooth; }

h1 { font-size: 44px; margin: 0; color: var(--text-primary-color); }
h2 { font-size: 24px; margin: 0 0 8px; color: var(--text-primary-color); }
h3 { font-size: 18px; margin: 0 0 6px; color: var(--text-primary-color); }
h4 { font-size: 15px; margin: 0 0 4px; color: var(--text-secondary-color); }
p  { font-size: 14px; line-height: 1.6; color: var(--text-secondary-color); margin: 0 0 8px; }

/* =========================================================
   BUTTON
   ========================================================= */
button {
  padding: 9px 16px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: var(--transition);
  margin-top: 8px;
  width: 100%;
  letter-spacing: 0.3px;
}

button:hover {
  background: linear-gradient(135deg, #e8527f, #ff6b9d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.45);
}

/* Buy Now — soft outline style */
button.btn-outline {
  background: white;
  color: #ff6b9d;
  border: 2px solid #ff6b9d;
  margin-top: 6px;
  font-weight: 600;
}

button.btn-outline:hover {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  border-color: transparent;
}

/* =========================================================
   LINK BUTTON
   ========================================================= */
.link-button {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 25px;
  background: var(--brand-primary-color);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.link-button:hover {
  background: var(--brand-fourth-color);
  transform: translateY(-2px);
}

/* =========================================================
   SELECT
   ========================================================= */
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-primary-color);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-sizing: border-box;
}

select:hover  { border-color: var(--border-secondary-color); }
select:focus  { outline: none; border-color: var(--border-focus-color); }
select:disabled { opacity: 0.5; cursor: not-allowed; }

.select-container { position: relative; width: 100%; }

/* =========================================================
   NAVBAR
   ========================================================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav > a {
  color: var(--brand-primary-color);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-primary-color);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition);
}

nav a:hover { color: var(--brand-primary-color); }

nav li { position: relative; }

nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-primary-color);
  border-radius: var(--radius-sm);
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-direction: column;
  padding: 6px 0;
}

nav .dropdown:hover .dropdown-menu { display: flex; }

nav .dropdown-menu a { padding: 8px 16px; display: block; font-size: 13px; }

nav button {
  padding: 7px 18px;
  font-size: 13px;
  border-radius: 20px;
  margin-top: 0;
  width: auto;
}

nav button:hover { transform: none; box-shadow: none; }

/* filter bar buttons also not full width */
.filter-btn { width: auto; }
.filter-bar button { width: auto; }
.form-container button { width: 100%; }
.checkout-form button  { width: 100%; }
.stat-card button      { width: auto; }

/* =========================================================
   HAMBURGER
   ========================================================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

.menu-toggle:hover { background: none; box-shadow: none; transform: none; }

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary-color);
  border-radius: 2px;
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
  }

  nav ul.open { display: flex; }
  nav ul li   { padding: 10px 20px; }
  nav ul li a { font-size: 15px; }

  nav .dropdown:hover .dropdown-menu { display: none; }
  nav .dropdown-menu { position: static; box-shadow: none; border: none; }
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 80px;
  gap: 40px;
  background: linear-gradient(135deg, #ffe0ee 0%, #fff5f9 60%, #ffffff 100%);
}

.hero-text { flex: 1; }

.hero-text p { margin-top: 15px; max-width: 420px; }

.hero-text button { margin-top: 15px; }

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  width: 100%;
  max-width: 420px;
  height: 420px;
  object-fit: contain;
  border-radius: 25px;
  mix-blend-mode: multiply;
  filter: contrast(1.05) brightness(1.05);
}

/* =========================================================
   CONTACT PAGE — split layout like Wix sample
   ========================================================= */
.contact-page {
  display: flex;
  gap: 60px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
  min-width: 260px;
}

.contact-left h1 {
  font-size: 38px;
  color: var(--brand-primary-color);
  margin-bottom: 10px;
}

.contact-tagline {
  color: var(--brand-primary-color);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}

.contact-detail span { font-size: 22px; margin-top: 2px; }
.contact-detail p    { margin: 2px 0; font-size: 13px; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  font-size: 20px;
  background: #fff0f5;
  border: 1px solid #ffd6e0;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--brand-primary-color);
  transition: var(--transition);
}

.social-links a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255,107,157,0.3); }
.social-links a[title="Instagram"]:hover { background: #e1306c; color: white; border-color: #e1306c; }
.social-links a[title="WhatsApp"]:hover  { background: #25d366; color: white; border-color: #25d366; }
.social-links a[title="TikTok"]:hover    { background: #000000; color: white; border-color: #000000; }
.social-links a[title="Email"]:hover     { background: var(--brand-primary-color); color: white; border-color: var(--brand-primary-color); }

.contact-right {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(255,107,157,0.1);
  border: 1px solid #ffe0ee;
}

.contact-name-row {
  display: flex;
  gap: 16px;
}

.contact-name-row > div { flex: 1; }

.contact-right button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 25px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .contact-page { flex-direction: column; gap: 30px; }
  .contact-name-row { flex-direction: column; gap: 0; }
}
.contact-layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-form-box {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 18px rgba(255,107,157,0.1);
  border: 1px solid #ffe0ee;
}

.contact-form-box h3 {
  margin-bottom: 20px;
  color: var(--brand-primary-color);
}

.contact-form-box button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 25px;
  font-size: 15px;
}

.contact-info-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(255,107,157,0.08);
  border: 1px solid #ffe0ee;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,107,157,0.2);
}

.contact-info-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}

.contact-info-card h4 {
  color: var(--brand-primary-color);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.contact-info-card p {
  font-size: 13px;
  margin: 2px 0;
  color: var(--text-secondary-color);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-primary-color);
  background: #fff0f5;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #ffd6e0;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--brand-primary-color);
  color: white;
}

/* =========================================================
   PROMOTIONAL BANNER
   ========================================================= */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  padding: 14px 20px;
}

.promo-item {
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 24px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.promo-item:last-child { border-right: none; }

/* =========================================================
   CUSTOMER REVIEWS
   ========================================================= */
.reviews-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 40px;
  margin: 20px 0 60px;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 18px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 4px 18px rgba(255,107,157,0.1);
  border: 1px solid #ffe0ee;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(255,107,157,0.25);
}

.review-stars {
  color: #ff6b9d;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary-color);
  font-style: italic;
  margin: 0;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary-color);
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.cart-count-badge {
  background: var(--brand-third-color);
  color: var(--brand-primary-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* cart layout — table on top, summary box centered below */
.cart-table-wrap {
  max-width: 860px;
  margin: 0 auto 30px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-third-color);
  color: var(--brand-primary-color);
  border: 1px solid var(--border-primary-color);
}

.qty-control button:hover {
  background: var(--brand-primary-color);
  color: white;
  transform: none;
  box-shadow: none;
}

.qty-control span {
  font-weight: 600;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  width: auto;
  margin: 0;
}

.btn-remove:hover {
  background: #ffe0ee;
  transform: none;
  box-shadow: none;
}

/* SUMMARY BOX — centered */
.cart-summary {
  max-width: 500px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(255,107,157,0.15);
  border: 1px solid #ffe0ee;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-secondary-color);
  margin-bottom: 12px;
}

.cart-summary-divider {
  border-top: 1px solid #ffe0ee;
  margin: 16px 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary-color);
  margin-bottom: 6px;
}

.cart-summary-note {
  font-size: 11px;
  color: var(--text-muted-color);
  margin-bottom: 20px;
}

.cart-summary button {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 15px;
  border-radius: 30px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 12px;
}

.cart-empty-icon { font-size: 48px; }
.cart-empty-state p { color: var(--text-muted-color); font-size: 15px; }
.cart-empty-state button { width: auto; padding: 10px 28px; }

.free-gift-msg {
  background: linear-gradient(135deg, #fff0f5, #ffe0ee);
  border: 1px solid var(--border-primary-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary-color);
  text-align: center;
  margin-bottom: 10px;
}

.gift-progress {
  font-size: 12px;
  color: var(--brand-primary-color);
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
  background: #fff0f5;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--brand-secondary-color);
}

/* hidden utility */
.hidden { display: none; }

/* =========================================================
   SHOP TOPBAR — title + search + Featured dropdown
   ========================================================= */
.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 24px auto 8px;
  padding: 0 20px;
}

.shop-topbar h2 { margin: 0; }

.shop-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-topbar-right input {
  width: 220px;
  padding: 11px 18px;
  border-radius: 30px;
  border: 1.5px solid #f0d0d8;
  background: white;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(255,107,157,0.08);
}

.shop-topbar-right select {
  width: auto;
  min-width: 160px;
  padding: 11px 40px 11px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #f0d0d8;
  background: white;
  color: var(--text-primary-color);
  box-shadow: 0 2px 10px rgba(255,107,157,0.08);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* =========================================================
   SHOP LAYOUT — sidebar + products
   ========================================================= */
.shop-layout {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  align-items: flex-start;
}

.shop-products { flex: 1; }

.shop-products .product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.sidebar-inputs {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-inputs input { margin: 0; }
.sidebar-inputs button { width: 100%; margin-top: 0; }

/* open by default */
.accordion-open { max-height: 300px; }

.acc-link {
  display: block;
  padding: 8px 16px 8px 24px;
  font-size: 13px;
  color: var(--text-secondary-color);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-radius: 6px;
}

.acc-link:hover { color: var(--brand-primary-color); background: #fff5f9; }
.acc-link.active-link { color: var(--brand-primary-color); font-weight: 600; }

@media (max-width: 768px) {
  .shop-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; }
  .shop-products .product-grid { justify-content: center; }
}

/* =========================================================
   PAGE CARDS — Explore Our Store section on home
   ========================================================= */
.page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 18px;
  padding: 24px 20px;
  width: 160px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.1);
  border: 1px solid #ffe0ee;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  gap: 6px;
}

.page-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.3);
  border-color: #ff6b9d;
}

.page-card-icon { font-size: 36px; margin-bottom: 6px; }
.page-card h3   { font-size: 15px; margin: 0; color: var(--brand-primary-color); }
.page-card p    { font-size: 11px; color: var(--text-muted-color); margin: 0; }

/* =========================================================
   COZMETICA-STYLE PRODUCT CARD (bigger, 2-col look)
   ========================================================= */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  margin: 20px 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 14px;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.1);
  border: 1px solid #ffe0ee;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.3);
  border-color: #ff6b9d;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #fff8fb;
  padding: 12px;
  box-sizing: border-box;
}

.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-body h3    { font-size: 15px; margin: 0; color: var(--text-primary-color); }
.product-card-body .price-new { color: var(--brand-primary-color); font-weight: 700; font-size: 16px; margin: 0; }
.product-card-body .price-old { text-decoration: line-through; color: var(--text-muted-color); font-size: 12px; margin: 0; }
.product-card-body button { margin-top: 4px; }

/* price area fixed height so buttons always align */
.price-area {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-card .badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  background: #e8527f;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */
.section-title {
  text-align: center;
  margin: 60px 0 20px;
  font-size: 22px;
}

/* =========================================================
   CARD SYSTEM
   ========================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 40px;
  margin: 20px 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid #ffe0ee;
  gap: 4px;
}

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.3);
  border: 1px solid #ff6b9d;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform var(--transition);
  background: #ffffff;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #fff0f5;
}
.card:hover img { transform: scale(1.08); }

.card a {
  background: none;
  color: var(--brand-primary-color);
  text-decoration: none;
  font-size: 13px;
  margin-top: 4px;
}

.card a:hover { background: none; color: var(--brand-fourth-color); text-decoration: underline; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #ffe0ee, #ffd6e8);
  margin-top: 60px;
}

.newsletter input {
  padding: 12px;
  width: 250px;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

/* =========================================================
   FORM SYSTEM
   ========================================================= */
.form-container {
  max-width: 480px;
  margin: 40px auto;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

form div { margin-bottom: 14px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-secondary-color);
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-primary-color);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: var(--border-focus-color);
  box-shadow: 0 0 0 3px rgba(255,77,109,0.12);
}

form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-primary-color);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  transition: var(--transition);
}

form textarea:focus {
  outline: none;
  border-color: var(--border-focus-color);
  box-shadow: 0 0 0 3px rgba(255,77,109,0.12);
}

/* =========================================================
   TABLE SYSTEM
   ========================================================= */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}

table thead { background: var(--brand-primary-color); color: white; }

table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

table td {
  padding: 11px 16px;
  color: var(--text-secondary-color);
  vertical-align: middle;
}

table tbody tr:nth-child(odd)  { background: #fff5f7; }
table tbody tr:nth-child(even) { background: #ffe5ec; }
table tbody tr:hover           { background: #ffc2d1; cursor: pointer; }
table tbody tr:last-child td   { border-bottom: none; }

td { word-break: break-word; }

.table-empty        { text-align: center; padding: 20px; color: var(--text-muted-color); }
.table-row-selected { background: var(--brand-third-color) !important; }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 12px;
  align-items: center;
}

.filter-btn { padding: 8px 16px; border-radius: 20px; font-size: 13px; }
.filter-btn.active { background: var(--brand-fourth-color); }

/* =========================================================
   CHECKOUT LAYOUT
   ========================================================= */
.checkout-layout {
  display: flex;
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.checkout-form {
  flex: 2;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  min-width: 280px;
}

.order-summary {
  flex: 1;
  background: #fff0f5;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: fit-content;
  min-width: 220px;
}

/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */
.stat-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 30px;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--brand-primary-color);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255,77,109,0.3);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  line-height: 1.9;
  font-size: 16px;
  color: #2a2a2a;
}

.about-quote {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  font-size: 18px;
  color: #444;
  border-left: 4px solid var(--brand-primary-color);
  padding-left: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: left;
}

.footer-container > div { flex: 1; min-width: 160px; }

footer a     { color: #ffd6e0; text-decoration: none; font-size: 13px; display: block; margin-bottom: 6px; }
footer a:hover { color: white; text-decoration: underline; }
footer p     { color: #ffd6e0; font-size: 13px; }
footer h2    { color: white; font-size: 16px; margin-bottom: 12px; }
footer h3    { color: white; font-size: 14px; margin-bottom: 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 40px 20px; }
  .hero-img img { height: 280px; }
  .checkout-layout { flex-direction: column; }
  .stat-container  { gap: 14px; }
  .stat-card       { min-width: 130px; padding: 18px 20px; }
  .card            { width: 160px; }
  .card img        { height: 150px; }
}




/* =========================================================
   HOME PAGE — PRODUCTS SECTION WITH FILTER
   ========================================================= */
.home-products-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.home-products-section .filter-bar {
  margin: 16px 0;
  justify-content: center;
}

.home-products-section .filter-btn {
  padding: 9px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  color: var(--brand-primary-color);
  border: 2px solid var(--brand-primary-color);
  width: auto;
  margin-top: 0;
  transition: var(--transition);
}

.home-products-section .filter-btn:hover,
.home-products-section .filter-btn.active {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,107,157,0.35);
}

/* =========================================================
   DASHBOARD PAGE
   ========================================================= */
.dash-hero {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8, #ffd6e8);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.dash-hero h1 { color: white; font-size: 30px; margin: 0 0 6px; }
.dash-hero p  { color: rgba(255,255,255,0.88); font-size: 14px; margin: 0; }
.dash-hero-emoji { font-size: 60px; line-height: 1; }
.dash-admin-label { color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 6px; }

.sec-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; color: #1f1f1f; }
.sec-title-gap { margin-top: 30px; }

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  background: white;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(255,107,157,0.1);
  border: 1px solid #ffe0ee;
  border-top: 4px solid #ff6b9d;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(255,107,157,0.28); }

.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-num  { font-size: 26px; font-weight: 700; color: #ff6b9d; margin: 0; }
.stat-num-alert { color: #e8527f; }
.stat-lbl  { font-size: 12px; color: #888; margin: 4px 0 0; font-weight: 500; }

.action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.action-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 18px rgba(255,107,157,0.08);
  border: 1px solid #ffe0ee;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.action-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(255,107,157,0.22); }
.action-card h3 { font-size: 15px; margin: 0 0 8px; color: #1f1f1f; }
.action-card p  { font-size: 12px; color: #888; margin: 0 0 14px; line-height: 1.6; flex: 1; }
.action-card button { width: 100%; margin-top: auto; padding: 9px; font-size: 13px; border-radius: 20px; }

.tab-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid #ff6b9d;
  background: white;
  color: #ff6b9d;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  width: auto;
  margin-top: 0;
  transition: 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.dash-tab        { display: none; }
.dash-tab.active { display: block; }

.dash-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(255,107,157,0.08);
  border: 1px solid #ffe0ee;
  margin-bottom: 24px;
}

.view-all-btn {
  padding: 8px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b9d, #ff8fb8);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: auto;
  margin: 0 0 16px;
}

.view-all-btn:hover { background: linear-gradient(135deg, #e8527f, #ff6b9d); transform: translateY(-2px); }

.badge-new    { display: inline-block; background: #e8527f; color: white; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }
.badge-hidden { display: none; }
.order-new    { color: #e8527f; font-weight: 700; }
.order-seen   { color: #ff8fb8; font-weight: 600; }
.order-items-small { font-size: 12px; color: #888; }
.dash-desc    { font-size: 13px; color: #888; margin: 0 0 14px; }
.dash-form-inner { margin: 0; box-shadow: none; padding: 0; }

.status-low  { color: #e8527f; font-weight: 700; }
.status-mid  { color: #ff8fb8; font-weight: 600; }
.status-good { color: #ff6b9d; font-weight: 600; }

.activity-log { list-style: none; padding: 0; margin: 0; }
.activity-log li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #fff0f5;
  font-size: 13px;
  color: #555;
}
.activity-log li:last-child { border-bottom: none; }
.log-icon { font-size: 18px; min-width: 28px; text-align: center; }
.log-time  { font-size: 11px; color: #aaa; margin-left: auto; white-space: nowrap; }

#stockChart  { max-width: 100%; border-radius: 10px; }
#ordersChart { max-width: 100%; border-radius: 10px; }

/* =========================================================
   CATEGORIES PAGE
   ========================================================= */

/* Hero banner */
.cat-hero {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(135deg, #ffe0ee 0%, #fff5f9 60%, #ffffff 100%);
}

.cat-hero h1 {
  font-size: 36px;
  color: var(--brand-primary-color);
  margin-bottom: 10px;
}

.cat-hero p {
  font-size: 15px;
  color: var(--text-secondary-color);
  max-width: 520px;
  margin: 0 auto;
}

/* Big category cards */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 20px;
  width: 240px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,107,157,0.12);
  border: 1px solid #ffe0ee;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(255,107,157,0.28);
  border-color: var(--brand-primary-color);
}

.cat-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fff8fb;
}

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

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

.cat-card-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-card-body h2 {
  font-size: 18px;
  margin: 0;
  color: var(--text-primary-color);
}

.cat-card-body p {
  font-size: 12px;
  color: var(--text-muted-color);
  margin: 0;
  line-height: 1.6;
}

.cat-card-body button {
  margin-top: 8px;
  width: 100%;
  padding: 9px;
  font-size: 13px;
  border-radius: 20px;
}

/* Sub-category quick links inside cat-card */
.cat-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cat-sub-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-primary-color);
  background: #fff0f5;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #ffd6e0;
  transition: var(--transition);
}

.cat-sub-links a:hover {
  background: var(--brand-primary-color);
  color: white;
  border-color: transparent;
}

/* Section label above each featured row */
.cat-section-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-primary-color);
  margin: 40px 0 4px 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-primary-color);
}

@media (max-width: 768px) {
  .cat-hero h1 { font-size: 26px; }
  .cat-card    { width: 100%; flex-direction: row; }
  .cat-card-img { width: 120px; min-width: 120px; height: 120px; }
}
