/* ============================================================
   RHAINA COSMETICS — style.css
   Editorial beauty design system
   ============================================================ */

:root{
  --bg:#FFFDFC;
  --blush-soft:#F9E8E5;
  --blush:#E7A49D;
  --blush-deep:#C97972;
  --text:#292321;
  --text-muted:#746966;
  --cream:#FDF4F0;
  --white:#FFFFFF;
  --border:#E9DFDB;
  --radius-sm:6px;
  --radius-md:10px;
  --shadow-sm:0 1px 3px rgba(41,35,33,.06);
  --shadow-md:0 6px 20px rgba(41,35,33,.08);
  --serif:'Cormorant Garamond', Georgia, serif;
  --sans:'Inter', -apple-system, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input, textarea, select{ font-family:inherit; font-size:14px; }

.container{ max-width:1280px; margin:0 auto; padding:0 24px; }

h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; letter-spacing:.2px; }

.eyebrow{
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  color:var(--blush-deep);
  text-transform:uppercase;
}
.section-heading{ text-align:center; margin:0 auto 40px; max-width:600px; }
.section-heading .eyebrow{ margin-bottom:10px; }
.section-heading h2{ font-size:34px; color:var(--text); }
.section{ padding:64px 0; }
.section.tight{ padding:40px 0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px;
  font-size:13px; font-weight:600; letter-spacing:.5px;
  text-transform:uppercase;
  border-radius:var(--radius-sm);
  transition:background .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--blush); color:var(--white); }
.btn-primary:hover{ background:var(--blush-deep); }
.btn-outline{ background:transparent; color:var(--text); border:1px solid var(--border); }
.btn-outline:hover{ border-color:var(--blush-deep); color:var(--blush-deep); }
.btn-sm{ padding:9px 16px; font-size:11.5px; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Top promo bar ---------- */
.promo-bar{
  background:var(--blush-soft);
  color:var(--text);
  font-size:12.5px;
}
.promo-bar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:8px; padding-bottom:8px;
}
.promo-bar .promo-msgs{ display:flex; align-items:center; gap:10px; }
.promo-bar .divider{ opacity:.5; }
.promo-bar .socials{ display:flex; gap:14px; }
.promo-bar .socials a{ display:flex; align-items:center; color:var(--text); opacity:.75; }
.promo-bar .socials a:hover{ opacity:1; color:var(--blush-deep); }

/* ---------- Nav ---------- */
.navbar{
  background:var(--white);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:100;
}
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.logo{ display:flex; align-items:center; gap:8px; }
.logo .mark{ color:var(--blush); }
.logo-text{ font-family:var(--serif); line-height:1.05; }
.logo-text .top{ font-size:22px; font-weight:600; color:var(--text); display:block; }
.logo-text .bottom{ font-size:10px; letter-spacing:3px; color:var(--blush-deep); font-family:var(--sans); font-weight:600; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-size:13.5px; font-weight:500; color:var(--text); transition:color .2s; }
.nav-links a:hover, .nav-links a.active{ color:var(--blush-deep); }

.nav-right{ display:flex; align-items:center; gap:18px; }
.icon-btn{ position:relative; display:flex; color:var(--text); }
.icon-btn:hover{ color:var(--blush-deep); }
.cart-badge{
  position:absolute; top:-7px; right:-9px;
  background:var(--blush-deep); color:#fff;
  font-size:10px; font-weight:700;
  min-width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  padding:0 3px;
}
.nav-cta{ display:flex; }
.hamburger{ display:none; color:var(--text); }

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  padding:56px 0 40px;
}
.hero .container{
  display:grid; grid-template-columns:1fr 1fr;
  gap:50px; align-items:center;
}
.hero h1{
  font-size:52px; line-height:1.08; margin:16px 0 20px;
}
.hero h1 .line{ display:block; }
.hero h1 .blush{ color:var(--blush-deep); }
.hero p{ color:var(--text-muted); font-size:15.5px; max-width:420px; margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-image-wrap{
  position:relative; border-radius:var(--radius-md); overflow:hidden;
  aspect-ratio:4/3.3;
}
.hero-image-wrap img{ width:100%; height:100%; object-fit:cover; }

.value-strip{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  margin-top:20px;
}
.value-strip .container{
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:22px 24px;
}
.value-item{
  display:flex; gap:12px; align-items:flex-start;
  padding:0 16px; border-left:1px solid var(--border);
}
.value-item:first-child{ border-left:none; padding-left:0; }
.value-item .ic{ color:var(--blush-deep); flex-shrink:0; margin-top:2px; }
.value-item .t{ font-size:13px; font-weight:700; letter-spacing:.3px; }
.value-item .d{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }

/* ---------- Categories ---------- */
.categories-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:28px;
}
.category-card{ text-align:center; }
.category-card .img-wrap{
  width:100%; aspect-ratio:1/1; border-radius:50%;
  overflow:hidden; margin-bottom:18px;
  border:1px solid var(--border);
}
.category-card img{ width:100%; height:100%; object-fit:cover; }
.category-card h3{ font-size:19px; margin-bottom:4px; }
.category-card p{ font-size:13px; color:var(--text-muted); margin-bottom:14px; }
.circle-arrow{
  width:38px; height:38px; border-radius:50%;
  background:var(--blush-soft); color:var(--blush-deep);
  display:inline-flex; align-items:center; justify-content:center;
  transition:background .2s, color .2s;
}
.category-card a:hover .circle-arrow{ background:var(--blush); color:#fff; }

/* ---------- Products ---------- */
.products-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.products-grid.six{ grid-template-columns:repeat(6,1fr); }
.product-card{
  border:1px solid var(--border); border-radius:var(--radius-md);
  overflow:hidden; background:var(--white);
  transition:box-shadow .2s;
  display:flex; flex-direction:column;
}
.product-card:hover{ box-shadow:var(--shadow-sm); }
.product-card .img-wrap{ position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--cream); }
.product-card .img-wrap img{ width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.product-card:hover .img-wrap img{ transform:scale(1.04); }
.wishlist-btn{
  position:absolute; top:10px; right:10px;
  width:30px; height:30px; border-radius:50%;
  background:rgba(255,255,255,.9);
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
}
.wishlist-btn:hover{ color:var(--blush-deep); }
.product-info{ padding:14px 14px 16px; flex:1; display:flex; flex-direction:column; }
.product-info .pname{ font-size:14.5px; font-weight:600; margin-bottom:2px; }
.product-info .psize{ font-size:12px; color:var(--text-muted); margin-bottom:8px; }
.price-row{ display:flex; align-items:baseline; gap:8px; margin-bottom:12px; }
.price{ font-weight:700; font-size:15px; color:var(--blush-deep); }
.price-old{ font-size:12.5px; color:var(--text-muted); text-decoration:line-through; }
.add-cart-btn{
  margin-top:auto;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:9px; font-size:11.5px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; text-align:center;
  transition:background .2s,color .2s, border-color .2s;
}
.add-cart-btn:hover{ background:var(--blush); border-color:var(--blush); color:#fff; }

/* ---------- Promo banner ---------- */
.promo-banner{
  background:var(--blush-soft);
  border-radius:var(--radius-md);
  overflow:hidden;
  position:relative;
  min-height:220px;
  display:flex; align-items:center;
}
.promo-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.35; }
.promo-banner .content{ position:relative; z-index:2; padding:40px 50px; display:flex; align-items:center; justify-content:space-between; width:100%; gap:24px; flex-wrap:wrap; }
.promo-banner .eyebrow{ margin-bottom:6px; }
.promo-banner h3{ font-size:30px; margin-bottom:6px; }
.promo-banner p{ color:var(--text-muted); font-size:14px; }

/* ---------- Why choose us ---------- */
.why-grid{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:28px;
  text-align:center;
}
.why-item{ flex:1; min-width:150px; }
.why-item .ic{ color:var(--blush-deep); margin-bottom:12px; display:flex; justify-content:center; }
.why-item .t{ font-size:13.5px; font-weight:700; letter-spacing:.3px; }

/* ---------- Services ---------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.service-card{
  border:1px solid var(--border); border-radius:var(--radius-md);
  overflow:hidden; background:var(--white);
}
.service-card .img-wrap{ aspect-ratio:4/3; overflow:hidden; }
.service-card .img-wrap img{ width:100%; height:100%; object-fit:cover; }
.service-info{ padding:16px 18px 18px; }
.service-info h3{ font-size:17px; margin-bottom:6px; }
.service-info p{ font-size:13px; color:var(--text-muted); margin-bottom:14px; }

/* ---------- Testimonials ---------- */
.testimonial-layout{ display:grid; grid-template-columns:1fr 1.2fr; gap:40px; align-items:center; }
.testimonial-card{
  background:var(--cream); border-radius:var(--radius-md);
  padding:34px; position:relative;
}
.testimonial-card .quote-mark{
  width:44px; height:44px; border-radius:50%;
  background:var(--blush); color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.stars{ color:var(--blush-deep); font-size:13px; margin-bottom:10px; letter-spacing:2px; }
.testimonial-card p{ font-size:15px; color:var(--text); font-style:italic; margin-bottom:14px; }
.testimonial-card .author{ font-weight:700; font-size:13.5px; }

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gallery-item{ aspect-ratio:1/1; border-radius:var(--radius-sm); overflow:hidden; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery-item:hover img{ transform:scale(1.06); }

/* ---------- Blog ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.blog-card{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.blog-card .img-wrap{ aspect-ratio:16/10; overflow:hidden; }
.blog-card .img-wrap img{ width:100%; height:100%; object-fit:cover; }
.blog-card .b-info{ padding:14px 16px 18px; }
.blog-card h4{ font-size:14.5px; margin-bottom:8px; line-height:1.35; }
.blog-card p{ font-size:12.5px; color:var(--text-muted); margin-bottom:12px; }
.read-more{ font-size:12px; font-weight:700; color:var(--blush-deep); display:inline-flex; align-items:center; gap:5px; }

/* ---------- Newsletter / Lifestyle+Blog layout ---------- */
.lifestyle-layout{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:30px; }
.newsletter-card{
  background:var(--blush-soft); border-radius:var(--radius-md);
  padding:34px 28px;
}
.newsletter-card h3{ font-size:20px; margin-bottom:10px; }
.newsletter-card p{ font-size:13.5px; color:var(--text-muted); margin-bottom:20px; }
.newsletter-form{ display:flex; flex-direction:column; gap:10px; }
.newsletter-form input{ padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--white); }
.form-msg{ font-size:12.5px; color:var(--blush-deep); font-weight:600; margin-top:8px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--blush-soft); padding:60px 0 24px; margin-top:20px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:30px; margin-bottom:40px; }
.footer-col h4{ font-size:12px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:16px; color:var(--text); font-family:var(--sans); font-weight:700; }
.footer-col ul li{ margin-bottom:9px; }
.footer-col ul li a{ font-size:13.5px; color:var(--text-muted); }
.footer-col ul li a:hover{ color:var(--blush-deep); }
.footer-col p{ font-size:13px; color:var(--text-muted); margin-bottom:8px; }
.footer-socials{ display:flex; gap:12px; margin-top:14px; }
.footer-socials a{ width:34px; height:34px; border-radius:50%; background:var(--white); display:flex; align-items:center; justify-content:center; color:var(--text); }
.footer-socials a:hover{ color:var(--blush-deep); }
.footer-bottom{
  border-top:1px solid rgba(41,35,33,.1);
  padding-top:22px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:12.5px; color:var(--text-muted);
}
.footer-bottom .legal-links{ display:flex; gap:18px; }

/* ---------- Page header (inner pages) ---------- */
.page-header{ background:var(--cream); padding:50px 0; text-align:center; }
.page-header .eyebrow{ margin-bottom:10px; }
.page-header h1{ font-size:36px; }
.breadcrumb{ font-size:12.5px; color:var(--text-muted); margin-top:10px; }

/* ---------- Filters / shop toolbar ---------- */
.shop-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; flex-wrap:wrap; gap:14px; }
.filter-pills{ display:flex; gap:10px; flex-wrap:wrap; }
.filter-pill{
  padding:8px 18px; border:1px solid var(--border); border-radius:20px;
  font-size:12.5px; font-weight:600; color:var(--text-muted);
}
.filter-pill.active{ background:var(--blush); color:#fff; border-color:var(--blush); }
.result-count{ font-size:13px; color:var(--text-muted); }

/* ---------- Forms (booking / checkout / contact) ---------- */
.form-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:32px;
}
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:12.5px; font-weight:600; color:var(--text); }
.field input, .field select, .field textarea{
  padding:11px 13px; border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--bg); color:var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--blush); }
.field textarea{ resize:vertical; min-height:90px; }

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(41,35,33,.45);
  display:none; align-items:center; justify-content:center;
  z-index:1000; padding:20px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:var(--white); border-radius:var(--radius-md);
  max-width:520px; width:100%; max-height:90vh; overflow-y:auto;
  padding:30px;
  animation:modalIn .2s ease;
}
@keyframes modalIn{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.modal-head h3{ font-size:20px; }
.modal-close{ color:var(--text-muted); }
.modal-close:hover{ color:var(--text); }

/* ---------- Cart drawer ---------- */
.cart-drawer-overlay{
  position:fixed; inset:0; background:rgba(41,35,33,.4);
  display:none; z-index:1000;
}
.cart-drawer-overlay.open{ display:block; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:400px; max-width:92vw;
  background:var(--white); z-index:1001;
  transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.open{ transform:translateX(0); }
.cart-drawer-head{ padding:20px 22px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.cart-drawer-body{ flex:1; overflow-y:auto; padding:16px 22px; }
.cart-drawer-foot{ padding:18px 22px; border-top:1px solid var(--border); }
.cart-line{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.cart-line img{ width:64px; height:64px; object-fit:cover; border-radius:var(--radius-sm); }
.cart-line .cl-info{ flex:1; }
.cart-line .cl-name{ font-size:13.5px; font-weight:600; }
.cart-line .cl-size{ font-size:11.5px; color:var(--text-muted); }
.qty-control{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.qty-control button{ width:22px; height:22px; border:1px solid var(--border); border-radius:4px; display:flex; align-items:center; justify-content:center; }
.cart-line .cl-remove{ color:var(--text-muted); }
.cart-line .cl-remove:hover{ color:var(--blush-deep); }
.subtotal-row{ display:flex; justify-content:space-between; font-size:14.5px; font-weight:700; margin-bottom:14px; }
.empty-state{ text-align:center; padding:40px 10px; color:var(--text-muted); font-size:14px; }

/* ---------- Utility ---------- */
.mt-40{ margin-top:40px; }
.text-center{ text-align:center; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .products-grid{ grid-template-columns:repeat(2,1fr); }
  .products-grid.six{ grid-template-columns:repeat(3,1fr); }
  .categories-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr 1fr; }
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
  .lifestyle-layout{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .value-strip .container{ grid-template-columns:repeat(2,1fr); row-gap:16px; }
  .value-item{ border-left:none; padding-left:0; }
}

@media (max-width:860px){
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  .nav-cta{ display:none; }
  .hero .container{ grid-template-columns:1fr; }
  .hero-image-wrap{ order:-1; aspect-ratio:4/3; }
  .hero h1{ font-size:38px; }
  .testimonial-layout{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .two-col{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .container{ padding:0 16px; }
  .products-grid, .products-grid.six{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .categories-grid{ grid-template-columns:repeat(2,1fr); gap:16px; }
  .services-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:26px; }
  .blog-grid{ grid-template-columns:1fr 1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .section{ padding:44px 0; }
  .section-heading h2{ font-size:26px; }
  .promo-bar .promo-msgs .divider, .promo-bar .promo-msgs span:nth-child(3){ display:none; }
  .cart-drawer{ width:100%; }
  .promo-banner .content{ flex-direction:column; text-align:center; padding:30px 24px; }
}

/* Mobile nav drawer */
.mobile-nav{
  position:fixed; top:0; left:0; height:100%; width:280px; max-width:85vw;
  background:var(--white); z-index:1001; padding:24px;
  transform:translateX(-100%); transition:transform .25s ease;
  overflow-y:auto;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav-overlay{ position:fixed; inset:0; background:rgba(41,35,33,.4); z-index:1000; display:none; }
.mobile-nav-overlay.open{ display:block; }
.mobile-nav a{ display:block; padding:13px 0; font-size:15px; border-bottom:1px solid var(--border); }
.mobile-nav-close{ margin-bottom:20px; display:flex; justify-content:flex-end; }
