/* ===== BeautyBoss — Global Stylesheet ===== */

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

:root {
  --rose:        #d4a0a0;
  --rose-light:  #f2e0e0;
  --rose-dark:   #b87878;
  --blush:       #f5e6e0;
  --cream:       #faf6f3;
  --charcoal:    #2d2d2d;
  --charcoal-lt: #4a4a4a;
  --white:       #ffffff;
  --gold:        #c9a96e;
  --shadow:      rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: var(--rose-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: .6rem;
}

.section-subtitle {
  text-align: center;
  color: var(--charcoal-lt);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--rose-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--rose);
  color: var(--rose-dark);
}
.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
}
.logo span { color: var(--rose); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width .3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose-light) 100%);
  text-align: center;
  padding: 6rem 0 5rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
}
.hero h1 span { color: var(--rose); }
.hero .tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--charcoal-lt);
  margin-bottom: 1.5rem;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--charcoal-lt);
}

/* ---------- Highlights (Home) ---------- */
.highlights {
  background: var(--white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow);
}
.highlight-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.highlight-card h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
.highlight-card p {
  color: var(--charcoal-lt);
  font-size: .95rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  opacity: .9;
}
.cta-banner .btn {
  background: var(--white);
  color: var(--rose-dark);
}
.cta-banner .btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------- Services Page ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow);
}

.service-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.service-card-body {
  padding: 2rem;
}
.service-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: .6rem;
}
.service-card-body p {
  color: var(--charcoal-lt);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.service-card-body ul {
  list-style: none;
  margin-bottom: 1.2rem;
}
.service-card-body ul li {
  padding: .3rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: .9rem;
  color: var(--charcoal-lt);
}
.service-card-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 700;
}

/* ---------- About Page ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--charcoal-lt);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}
.value-card .icon {
  font-size: 2rem;
  margin-bottom: .8rem;
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.value-card p {
  font-size: .9rem;
  color: var(--charcoal-lt);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}
.contact-info p {
  color: var(--charcoal-lt);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .2rem;
}
.contact-detail strong {
  display: block;
  margin-bottom: .15rem;
}
.contact-detail span,
.contact-detail a {
  font-size: .95rem;
  color: var(--charcoal-lt);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 50px;
  background: var(--rose-light);
  color: var(--charcoal);
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s;
}
.social-links a:hover {
  background: var(--rose);
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}
.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.3rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--rose-light);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  transition: border-color .3s;
  background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose-light) 100%);
  text-align: center;
  padding: 4rem 0 3rem;
}
.page-header h1 {
  font-size: 2.6rem;
  margin-bottom: .4rem;
}
.page-header p {
  color: var(--charcoal-lt);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: auto;
}
.footer .logo {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
.footer .logo span { color: var(--rose); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
}
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.footer-links a:hover { color: var(--rose-light); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.footer-social a {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.footer-social a:hover { color: var(--rose-light); }

.footer small {
  font-size: .8rem;
  opacity: .6;
}

/* ---------- Shop Page ---------- */
.shop-filters {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .6rem 1.6rem;
  border: 2px solid var(--rose-light);
  border-radius: 50px;
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
}
.filter-btn:hover {
  border-color: var(--rose);
  color: var(--rose-dark);
}
.filter-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow);
}

.product-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--blush), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-category {
  margin-bottom: 3rem;
}
.shop-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rose-light);
  color: var(--charcoal);
}

.product-card-body {
  padding: 1.5rem;
}
.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.product-card-body p {
  color: var(--charcoal-lt);
  font-size: .9rem;
  margin-bottom: .8rem;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

.product-card .btn {
  width: 100%;
  text-align: center;
  font-size: .85rem;
  padding: .7rem 1rem;
}

/* Cart Badge */
.cart-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  z-index: 200;
  transition: transform .3s, background .3s;
}
.cart-badge:hover {
  transform: scale(1.1);
  background: var(--rose-dark);
}
.cart-badge.has-items #cart-count {
  background: var(--rose);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

/* Cart Panel */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s;
}
.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--rose-light);
}
.cart-panel-header h3 {
  font-size: 1.3rem;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--charcoal);
  line-height: 1;
}

.cart-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--charcoal-lt);
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rose-light);
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.cart-item-info strong {
  font-size: .9rem;
}
.cart-item-info span {
  font-size: .8rem;
  color: var(--charcoal-lt);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.cart-item-actions button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rose-light);
  background: var(--cream);
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.cart-item-actions button:hover {
  background: var(--rose-light);
}
.cart-item-remove {
  color: var(--rose-dark);
  font-weight: 700;
}

.cart-panel-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--rose-light);
}
.cart-total {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: right;
}
.cart-total strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--rose-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px var(--shadow);
    padding: 1.5rem 0;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; padding: .8rem 0; }

  .header .container { position: relative; }

  .about-content { grid-template-columns: 1fr; }
  .about-image { height: 260px; }

  .contact-grid { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.8rem; }

  .services-grid { grid-template-columns: 1fr; }

  .product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .cart-badge { bottom: 1.5rem; right: 1.5rem; width: 52px; height: 52px; font-size: 1rem; }

  .social-links { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 4rem 0 3rem; }
  .btn { padding: .75rem 1.8rem; font-size: .85rem; }
  .page-header h1 { font-size: 2rem; }

  .product-grid { grid-template-columns: 1fr; }
  .shop-filters { gap: .5rem; }
  .filter-btn { padding: .5rem 1.2rem; font-size: .8rem; }
  .cart-badge { bottom: 1rem; right: 1rem; }
}

/* ---------- Checkout Page ---------- */
.checkout-summary {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}

.checkout-summary h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rose-light);
  font-size: .95rem;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1.2rem;
  margin-top: .5rem;
  font-size: 1.1rem;
}
.checkout-summary-total strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--rose-dark);
}

.checkout-confirmation {
  text-align: center;
  padding: 3rem 0;
}
.checkout-confirmation h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--rose-dark);
}
.checkout-confirmation p {
  color: var(--charcoal-lt);
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.checkout-confirmation .order-number strong,
.checkout-confirmation .order-total-confirm strong {
  font-family: 'Playfair Display', serif;
  color: var(--charcoal);
  font-size: 1.2rem;
}
