/*
Theme Name: CM Jewel Luxury
Theme URI: https://cmjewel.shop/
Author: CM JEWEL
Description: Luxury jewelry WooCommerce theme with elegant header, account/cart entrance, refined product cards and premium footer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: cm-jewel-luxury
*/

:root{
  --cm-bg:#fff;
  --cm-soft:#faf7f2;
  --cm-cream:#f4eee6;
  --cm-ink:#162b36;
  --cm-muted:#667985;
  --cm-gold:#c8a15a;
  --cm-gold-dark:#a98136;
  --cm-blue:#0f4f6a;
  --cm-line:#e9dfd4;
  --cm-shadow:0 18px 55px rgba(22,43,54,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, "Helvetica Neue", Arial, sans-serif;
  color:var(--cm-ink);
  background:var(--cm-bg);
  line-height:1.65;
}
a{text-decoration:none;color:inherit;transition:.2s ease}
a:hover{color:var(--cm-gold-dark)}
img{max-width:100%;height:auto}
.cm-container{max-width:1220px;margin:0 auto;padding:0 28px}

.cm-topbar{
  background:#111;
  color:#f6efe5;
  font-size:13px;
  letter-spacing:.04em;
}
.cm-topbar .cm-container{
  min-height:34px;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.cm-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--cm-line);
}
.admin-bar .cm-header{top:32px}
.cm-header-inner{
  height:86px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
}
.cm-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.cm-logo img{max-height:74px;width:auto}
.cm-logo-text{
  font-family:Georgia,serif;
  font-weight:700;
  letter-spacing:.11em;
  font-size:27px;
}
.cm-nav ul{
  display:flex;
  list-style:none;
  gap:28px;
  padding:0;
  margin:0;
  align-items:center;
}
.cm-nav a{
  font-size:14px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#34434b;
}
.cm-nav a:hover{color:var(--cm-gold-dark)}
.cm-header-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}
.cm-action{
  display:inline-flex;
  min-width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--cm-line);
  border-radius:999px;
  color:var(--cm-ink);
  background:#fff;
  font-size:14px;
  font-weight:700;
}
.cm-account-text{padding:0 16px}
.cm-cart-count{
  background:var(--cm-blue);
  color:#fff;
  border-radius:999px;
  min-width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  margin-left:6px;
}

.cm-hero{
  background:
    linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.72)),
    radial-gradient(circle at 78% 34%,#ead7ad 0,#fff 34%,#f7f1e9 100%);
  padding:92px 0 84px;
  overflow:hidden;
}
.cm-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:58px;
  align-items:center;
}
.cm-eyebrow{
  color:var(--cm-gold-dark);
  text-transform:uppercase;
  letter-spacing:.24em;
  font-size:13px;
  font-weight:800;
}
.cm-hero h1{
  font-family:Georgia,serif;
  font-size:62px;
  line-height:1.06;
  margin:16px 0 18px;
  max-width:650px;
}
.cm-hero p{
  color:var(--cm-muted);
  font-size:18px;
  max-width:575px;
}
.cm-btn-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.cm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 28px;
  border-radius:999px;
  border:1px solid var(--cm-blue);
  background:var(--cm-blue);
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
}
.cm-btn:hover{background:var(--cm-gold);border-color:var(--cm-gold);color:#fff}
.cm-btn-outline{background:#fff;color:var(--cm-blue)}
.cm-btn-outline:hover{background:#111;border-color:#111;color:#fff}
.cm-hero-card{
  min-height:440px;
  border-radius:34px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.9)),
    url('assets/hero-jewelry.svg') center/cover no-repeat;
  box-shadow:0 28px 80px rgba(15,79,106,.15);
  border:1px solid rgba(200,161,90,.32);
}

.cm-section{padding:78px 0}
.cm-section-soft{background:var(--cm-soft)}
.cm-section-title{text-align:center;margin-bottom:42px}
.cm-section-title h2{
  font-family:Georgia,serif;
  font-size:40px;
  margin:0 0 8px;
}
.cm-section-title p{margin:0;color:var(--cm-muted)}

.cm-features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.cm-feature{
  background:#fff;
  border:1px solid var(--cm-line);
  border-radius:24px;
  padding:26px 20px;
  text-align:center;
  box-shadow:var(--cm-shadow);
}
.cm-feature-icon{font-size:26px;margin-bottom:8px}
.cm-feature strong{display:block;margin-bottom:7px}
.cm-feature span{font-size:14px;color:var(--cm-muted)}

.cm-category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.cm-category-card{
  min-height:210px;
  border-radius:28px;
  background:linear-gradient(135deg,#fff,#f5ead9);
  border:1px solid var(--cm-line);
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  box-shadow:var(--cm-shadow);
}
.cm-category-card h3{
  font-family:Georgia,serif;
  font-size:28px;
  margin:0 0 8px;
}
.cm-category-card span{color:var(--cm-muted)}

.woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,1fr);
  gap:32px!important;
}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width:auto!important;
  float:none!important;
  margin:0!important;
  border:1px solid var(--cm-line);
  border-radius:24px;
  overflow:hidden;
  padding:0 0 22px!important;
  background:#fff;
  box-shadow:var(--cm-shadow);
  transition:.25s ease;
}
.woocommerce ul.products li.product:hover{transform:translateY(-5px)}
.woocommerce ul.products li.product img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  margin:0!important;
}
.woocommerce-loop-product__title{
  padding:18px 20px 0!important;
  font-size:16px!important;
  line-height:1.45!important;
  color:var(--cm-ink);
  min-height:68px;
}
.woocommerce ul.products li.product .price{
  padding:0 20px;
  color:var(--cm-blue)!important;
  font-weight:800!important;
}
.woocommerce ul.products li.product .button{
  margin:8px 20px 0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--cm-blue)!important;
  border:1px solid var(--cm-blue)!important;
  font-weight:800!important;
}
.woocommerce ul.products li.product .button:hover{
  background:var(--cm-blue)!important;
  color:#fff!important;
}
.woocommerce span.onsale{
  background:var(--cm-gold)!important;
  color:#fff!important;
}

.cm-newsletter{
  background:#111;
  color:#fff;
  border-radius:34px;
  padding:46px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;
  align-items:center;
}
.cm-newsletter h2{
  font-family:Georgia,serif;
  font-size:36px;
  margin:0 0 10px;
}
.cm-newsletter p{margin:0;color:#d6d2cc}
.cm-newsletter .cm-btn{background:var(--cm-gold);border-color:var(--cm-gold)}

.cm-footer{
  background:#f8f5f0;
  border-top:1px solid var(--cm-line);
  padding:62px 0 26px;
  margin-top:0;
}
.cm-footer-grid{
  display:grid;
  grid-template-columns:1.35fr 1fr 1.25fr 1fr;
  gap:52px;
  align-items:start;
}
.cm-footer h3,.cm-footer h4{margin:0 0 16px;color:#111}
.cm-footer h3{
  font-family:Georgia,serif;
  font-size:30px;
  letter-spacing:.12em;
}
.cm-footer h4{font-size:17px}
.cm-footer p,.cm-footer li{color:#4f5c64;font-size:15px}
.cm-footer ul{list-style:none;padding:0;margin:0}
.cm-footer li{margin-bottom:10px}
.cm-footer-bottom{
  margin-top:42px;
  padding-top:24px;
  border-top:1px solid var(--cm-line);
  color:#72808a;
  font-size:14px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

/* Hide unwanted default widgets */
.widget_search,.widget_recent_entries,.widget_recent_comments,.widget_archive,.widget_categories,.widget_meta{
  display:none!important;
}

@media(max-width:1050px){
  .cm-header-inner{grid-template-columns:1fr; height:auto; padding:16px 0}
  .cm-logo{order:-1}
  .cm-nav ul{justify-content:center;flex-wrap:wrap;gap:18px}
  .cm-header-actions{justify-content:center}
  .cm-hero-grid,.cm-newsletter{grid-template-columns:1fr}
  .woocommerce ul.products{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .cm-container{padding:0 18px}
  .cm-hero{padding:58px 0}
  .cm-hero h1{font-size:42px}
  .cm-features,.cm-category-grid,.cm-footer-grid{grid-template-columns:1fr}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:18px!important}
  .cm-newsletter{padding:30px}
}
@media(max-width:460px){
  .woocommerce ul.products{grid-template-columns:1fr}
  .cm-account-text{display:none}
}
