/* ===== Variables ===== */
:root {
  --pink: #e91e63;
  --pink-dark: #c2185b;
  --pink-light: #fce4ec;
  --gold: #d4a017;
  --dark: #1a1a1a;
  --gray: #4a4a4a;
  --gray-light: #f7f5f6;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 50px rgba(233,30,99,0.15);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 600;
  transition: var(--transition); border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(233,30,99,0.35); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--pink); }
.btn-sm {
  padding: 0.55rem 1.3rem; font-size: 0.9rem;
  background: var(--pink-light); color: var(--pink); border-radius: 50px;
}
.btn-sm:hover { background: var(--pink); color: var(--white); }
.btn-full { width: 100%; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05); transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; }
.logo-icon { color: var(--pink); font-size: 1.4rem; }
#brandHighlightText, #brandHighlightTextFooter { color: var(--pink); font-weight: 500; }
.nav { display: flex; gap: 1.8rem; }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--gray);
  position: relative; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--pink); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--pink); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.45) 100%),
    url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1600&q=80');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}
.hero-content { color: var(--white); max-width: 680px; padding: 4rem 0; }
.hero-eyebrow {
  display: inline-block; background: rgba(233,30,99,0.25); color: #ffb6c1;
  padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.5px; margin-bottom: 1.2rem;
}
.hero-title {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem;
}
.hero-title span { color: #ffb6c1; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: #ffb6c1; }
.stat span { font-size: 0.9rem; opacity: 0.8; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  color: var(--pink); font-weight: 600; font-size: 0.9rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-eyebrow.light { color: #ffb6c1; }
.section-title {
  font-family: Georgia, serif; font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 700; margin-bottom: 0.8rem;
}
.section-title.light { color: var(--white); }
.section-desc { color: var(--gray); font-size: 1.05rem; }

/* Courses */
.courses { background: var(--gray-light); }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem;
}
.course-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.course-image {
  height: 180px; position: relative; background-size: cover; background-position: center;
}
.course-image.hair { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1562322140-8baeececf3df?w=600&q=80'); }
.course-image.nail { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1604654894610-df63bc536371?w=600&q=80'); }
.course-image.makeup { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?w=600&q=80'); }
.course-image.spa { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?w=600&q=80'); }
.course-image.lashes { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?w=600&q=80'); }
.course-image.full { background-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent), url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=600&q=80'); }
.course-tag {
  position: absolute; top: 12px; left: 12px; background: var(--pink); color: white;
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 50px;
}
.course-body { padding: 1.4rem 1.5rem 1.6rem; }
.course-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; }
.course-body > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1rem; }
.course-meta { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.2rem; }
.course-meta li { margin-bottom: 0.25rem; }
.course-meta strong { color: var(--dark); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.about-content p { color: var(--gray); margin-bottom: 1.5rem; font-size: 1.05rem; }
.about-list li { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.85rem; font-weight: 500; }
.about-list .icon { color: var(--pink); font-weight: 700; flex-shrink: 0; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.about-card {
  background: var(--pink-light); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  text-align: center; transition: var(--transition);
}
.about-card:hover { transform: scale(1.03); }
.about-card:nth-child(3) { grid-column: 1 / -1; }
.about-number { font-size: 2.4rem; font-weight: 700; color: var(--pink); line-height: 1.1; }
.about-label { font-size: 0.95rem; color: var(--gray); margin-top: 0.3rem; }

/* Teachers */
.teachers { background: var(--gray-light); }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; }
.teacher-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.teacher-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1.2rem;
  background-size: cover; background-position: center; border: 3px solid var(--pink-light);
}
.teacher-avatar.t1 { background-image: url('https://images.unsplash.com/photo-1580618672591-eb180b1a973f?w=300&q=80'); }
.teacher-avatar.t2 { background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=300&q=80'); }
.teacher-avatar.t3 { background-image: url('https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=300&q=80'); }
.teacher-avatar.t4 { background-image: url('https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300&q=80'); }
.teacher-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.teacher-role { color: var(--pink); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; }
.teacher-card > p:last-child { font-size: 0.9rem; color: var(--gray); }

/* Register */
.register { background: linear-gradient(135deg, #1a1a1a 0%, #3d1a2a 100%); color: var(--white); }
.register-box { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.register-desc { opacity: 0.85; margin: 1rem 0 1.5rem; font-size: 1.05rem; }
.register-benefits { margin-top: 1.5rem; }
.register-benefits li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; opacity: 0.9; }
.register-benefits li::before { content: '✦'; position: absolute; left: 0; color: #ffb6c1; }
.register-form {
  background: var(--white); color: var(--dark); padding: 2.2rem;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e0e0e0;
  border-radius: 10px; transition: var(--transition); background: #fafafa;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--pink); background: white;
  box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}
.form-note { text-align: center; font-size: 0.8rem; color: var(--gray); margin-top: 0.8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.contact-card {
  text-align: center; padding: 2rem 1.5rem; background: var(--gray-light);
  border-radius: var(--radius); transition: var(--transition);
}
.contact-card:hover { background: var(--pink-light); transform: translateY(-4px); }
.contact-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }

/* Footer */
.footer { background: #111; color: #ccc; padding-top: 3.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 0.8rem; font-size: 0.95rem; opacity: 0.7; max-width: 260px; }
.footer-links h4, .footer-social h4 { color: white; font-size: 1rem; margin-bottom: 1rem; }
.footer-links a {
  display: block; font-size: 0.95rem; margin-bottom: 0.5rem; opacity: 0.75; transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: #ffb6c1; }
.social-icons { display: flex; gap: 0.8rem; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  font-weight: 600; transition: var(--transition);
}
.social-icons a:hover { background: var(--pink); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 0;
  text-align: center; font-size: 0.85rem; opacity: 0.6;
}

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #2e7d32; color: white; padding: 1rem 1.8rem; border-radius: 50px;
  font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.2); opacity: 0;
  transition: 0.4s ease; z-index: 2000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #c62828; }

/* Loading */
.loading-courses {
  text-align: center; padding: 3rem; color: var(--gray);
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; background: white;
    flex-direction: column; padding: 1.5rem; gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-120%);
    opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display: flex; }
  .about-grid, .register-box { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 1.5rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .register-form { padding: 1.5rem; }
}

/* Products */
.products { background: var(--white); }
.product-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 50px; border: 1.5px solid #e0e0e0;
  background: white; cursor: pointer; font-weight: 500; font-size: 0.9rem;
  transition: var(--transition); color: var(--gray);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--pink); color: white; border-color: var(--pink);
}
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid #f0f0f0;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-image {
  height: 200px; background-size: cover; background-position: center;
  background-color: #f5f5f5;
}
.product-body { padding: 1.2rem 1.3rem 1.4rem; }
.product-cat {
  font-size: 0.75rem; color: var(--pink); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.35rem;
}
.product-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; font-weight: 600; }
.product-price { color: var(--pink); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.product-body .btn-sm { font-size: 0.85rem; }

/* Product modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none;
  align-items: center; justify-content: center; z-index: 1500; padding: 1rem;
}
.modal.open { display: flex; }
.product-modal-box {
  background: white; border-radius: 16px; width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto; position: relative; padding: 0;
}
.product-modal-box .modal-close {
  position: absolute; top: 12px; right: 16px; background: rgba(0,0,0,0.5);
  color: white; border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 2; line-height: 1;
}
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.product-detail-image {
  min-height: 320px; background-size: cover; background-position: center;
  background-color: #f0f0f0;
}
.product-detail-info { padding: 2rem 1.8rem; }
.product-detail-cat { color: var(--pink); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.product-detail-info h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.product-detail-price { color: var(--pink); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.product-detail-desc { color: var(--gray); margin-bottom: 1.5rem; line-height: 1.6; }

@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-image { min-height: 220px; }
}

/* Cart */
.cart-btn {
  position: relative; background: var(--pink-light); border: none;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  margin-left: 0.5rem; transition: var(--transition);
}
.cart-btn:hover { background: var(--pink); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--pink); color: white; font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1600;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(400px, 100%); height: 100%;
  background: white; z-index: 1610; display: flex; flex-direction: column;
  transform: translateX(100%); transition: 0.3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid #eee;
}
.cart-header h2 { font-size: 1.2rem; }
.cart-header .modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666;
}
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-empty { text-align: center; color: #999; padding: 2rem 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem;
  padding: 0.9rem 0; border-bottom: 1px solid #f0f0f0; align-items: center;
}
.cart-item-img {
  width: 64px; height: 64px; border-radius: 10px; background-size: cover;
  background-position: center; background-color: #f5f5f5;
}
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cart-item-price { color: var(--pink); font-weight: 600; font-size: 0.9rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cart-item-qty {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid #e0e0e0; border-radius: 8px; padding: 0.15rem 0.3rem;
}
.cart-item-qty button {
  width: 26px; height: 26px; border: none; background: #f5f5f5;
  border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-item-qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-item-remove {
  background: none; border: none; color: #999; font-size: 0.8rem;
  cursor: pointer; text-decoration: underline;
}
.cart-item-remove:hover { color: #c62828; }
.cart-footer {
  padding: 1.2rem 1.4rem; border-top: 1px solid #eee; background: #fafafa;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; font-size: 1.05rem;
}
.cart-total strong { color: var(--pink); font-size: 1.25rem; }

.product-detail-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
}
.qty-control {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid #e0e0e0; border-radius: 50px; padding: 0.35rem 0.6rem;
}
.qty-control button {
  width: 32px; height: 32px; border: none; background: var(--pink-light);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--pink);
  font-weight: 700;
}
.qty-control span { min-width: 24px; text-align: center; font-weight: 600; }

.header-inner { gap: 0.5rem; }
.cart-btn { flex-shrink: 0; }

/* Payment methods */
.pay-methods { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-option { cursor: pointer; }
.pay-option input { display: none; }
.pay-card {
  display: block; padding: 0.85rem 1rem; border: 1.5px solid #e0e0e0;
  border-radius: 12px; transition: 0.2s;
}
.pay-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.pay-card small { color: #888; font-size: 0.8rem; }
.pay-option input:checked + .pay-card {
  border-color: var(--pink); background: var(--pink-light);
}
