/*
Theme Name: Shiny Elegant (WooCommerce Catalog)
Theme URI: https://shinyelegancy.com
Author: Shiny Elegant Jewellery
Description: One-page catalog theme, styled exactly like the original Shiny Elegant catalog design. Products are managed through WooCommerce (Products > Add New) but there is no cart or checkout — every product has an "Order via WhatsApp" button instead. Requires the WooCommerce plugin to be installed and active.
Version: 1.0.0
Text Domain: shiny-elegant
*/

  :root{
    --ivory:#FBF5EC;
    --paper:#F5EDE1;
    --plum:#3E1730;
    --plum-soft:#5C2A49;
    --rose:#BE7086;
    --rose-deep:#A2536B;
    --sage:#7C8A5B;
    --gold:#B08A4E;
    --ink:#2B2119;
    --line: rgba(62,23,48,0.16);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--ivory);
    color:var(--ink);
    font-family:'Jost',sans-serif;
    font-weight:300;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  @media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition:none !important;}
  }
  h1,h2,h3{
    font-family:'Cormorant Garamond',serif;
    font-weight:500;
    margin:0;
    color:var(--plum);
  }
  em{font-style:italic; color:var(--rose-deep);}
  a{color:inherit;}
  img{max-width:100%; height:auto;}
  .eyebrow{
    font-family:'Jost',sans-serif;
    text-transform:uppercase;
    letter-spacing:.22em;
    font-size:11.5px;
    color:var(--gold);
    font-weight:500;
  }
  .wrap{max-width:1120px; margin:0 auto; padding:0 32px;}

  /* pressed-flower divider, the signature motif */
  .press-divider{
    display:flex; align-items:center; gap:14px;
    margin:0 auto; width:100%; max-width:340px;
    color:var(--rose-deep); opacity:.8;
  }
  .press-divider .line{flex:1; height:1px; background:var(--line);}
  .press-divider svg{width:22px; height:22px; flex-shrink:0;}

  /* HEADER */
  header{
    position:sticky; top:0; z-index:40;
    border-bottom:1px solid var(--line);
    transition:transform .32s ease;
  }
  header::before{
    content:''; position:absolute; inset:0; z-index:-1;
    background:rgba(251,245,236,0.92);
    backdrop-filter:blur(8px);
    pointer-events:none;
  }
  header.header-hidden{
    transform:translateY(-100%);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 32px; max-width:1120px; margin:0 auto;
  }
  .brand{
    font-family:'Cormorant Garamond',serif; font-size:22px; font-weight:600;
    letter-spacing:.03em; color:var(--plum); text-decoration:none;
    display:flex; align-items:center;
  }
  .brand img{height:44px; width:auto; max-width:200px; object-fit:contain;}
  @media (max-width:480px){
    .brand img{height:34px; max-width:140px;}
  }
  .nav-menu{display:flex; align-items:center; gap:34px;}
  .nav-links{display:flex; gap:34px; list-style:none; margin:0; padding:0;}
  .nav-links a{
    text-decoration:none; font-size:13px; letter-spacing:.08em; text-transform:uppercase;
    color:var(--plum-soft); font-weight:500; position:relative; padding-bottom:4px;
  }
  .nav-links a::after{
    content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--gold);
    transition:width .3s ease;
  }
  .nav-links a:hover::after{width:100%;}
  .nav-cta{
    background:var(--plum); color:var(--ivory) !important; padding:10px 20px;
    border-radius:2px; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase;
    text-decoration:none; font-weight:500; white-space:nowrap;
  }

  /* Hamburger toggle — hidden on desktop */
  .nav-toggle{
    display:none; flex-direction:column; justify-content:center; gap:5px;
    width:40px; height:40px; padding:0; background:none; border:none; cursor:pointer;
    z-index:70; position:relative;
  }
  .nav-toggle span{
    display:block; width:24px; height:2px; background:var(--plum);
    transition:transform .3s ease, opacity .3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .nav-overlay{
    display:none; position:fixed; inset:0; background:rgba(43,33,25,0.45);
    opacity:0; transition:opacity .3s ease; z-index:55;
  }

  @media (max-width:820px){
    .nav-toggle{display:flex;}

    .nav-menu{
      position:fixed; top:0; right:0; height:100%; width:78%; max-width:320px;
      background:var(--ivory); flex-direction:column; align-items:flex-start; justify-content:flex-start;
      gap:28px; padding:90px 36px 40px; transform:translateX(100%);
      transition:transform .35s ease; box-shadow:-14px 0 34px -16px rgba(62,23,48,0.35);
      z-index:60; overflow:visible;
    }
    .nav-menu.is-open{transform:translateX(0);}
    .nav-links{flex-direction:column; gap:24px;}
    .nav-links a{font-size:14px;}
    .nav-cta{width:100%; text-align:center; padding:14px 20px;}

    .nav-overlay.is-open{display:block; opacity:1;}
    body.nav-open{overflow:hidden;}
  }

  /* HERO */
  .hero{
    padding:76px 0 60px;
    position:relative;
    overflow:hidden;
  }
  .hero .wrap{
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  }
  .hero-copy .eyebrow{margin-bottom:18px; display:block;}
  .hero h1{
    font-size:clamp(40px,5.4vw,64px);
    line-height:1.06;
    letter-spacing:.005em;
  }
  .hero p.lede{
    margin-top:22px; max-width:440px; font-size:16.5px; color:var(--plum-soft);
    font-weight:300;
  }
  .hero-actions{display:flex; gap:16px; margin-top:34px; flex-wrap:wrap;}
  .btn-primary, .btn-ghost{
    display:inline-flex; align-items:center; gap:8px;
    padding:14px 26px; border-radius:2px; font-size:13px; letter-spacing:.08em; text-transform:uppercase;
    text-decoration:none; font-weight:500; border:1px solid var(--plum);
  }
  .btn-primary{background:var(--plum); color:var(--ivory);}
  .btn-primary:hover{background:var(--plum-soft);}
  .btn-ghost{background:transparent; color:var(--plum);}
  .btn-ghost:hover{background:rgba(62,23,48,0.06);}

  .hero-collage{
    position:relative; height:420px;
  }
  .hero-collage img{
    position:absolute; object-fit:cover; border-radius:2px;
    box-shadow:0 18px 40px -14px rgba(62,23,48,0.35);
    border:6px solid var(--paper);
  }
  .hc1{width:58%; height:78%; top:0; right:0; z-index:2;}
  .hc2{width:44%; height:52%; bottom:0; left:0; z-index:3; border-color:var(--ivory);}
  .hc3{
    width:110px; height:110px; border-radius:50%; object-fit:cover;
    top:12%; left:4%; z-index:4; border:5px solid var(--ivory);
    box-shadow:0 12px 28px -10px rgba(62,23,48,0.4);
  }
  @media (max-width:900px){
    .hero .wrap{grid-template-columns:1fr; gap:44px;}
    .hero-collage{height:340px; order:-1;}
  }

  /* STRIP STATS */
  .stats-strip{
    background:var(--plum); color:var(--ivory);
    padding:26px 0;
  }
  .stats-strip .wrap{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px;
  }
  .stat{text-align:left;}
  .stat b{
    font-family:'Cormorant Garamond',serif; font-size:30px; font-weight:600; color:var(--ivory); display:block;
  }
  .stat span{font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:rgba(251,245,236,0.7);}

  /* ABOUT */
  .about{padding:88px 0 96px;}
  .about .wrap{display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:start;}
  .about-media{position:relative;}
  .about-media img{width:100%; border-radius:2px; display:block; box-shadow:0 20px 44px -18px rgba(62,23,48,0.4);}
  .about h2{font-size:clamp(30px,3.6vw,42px); margin-top:14px; line-height:1.12;}
  .about p{max-width:520px; margin-top:20px; color:var(--plum-soft); font-size:15.5px;}
  .about-grid{display:flex; gap:40px; margin-top:32px; flex-wrap:wrap;}
  .about-item b{font-family:'Cormorant Garamond',serif; font-size:26px; color:var(--rose-deep); display:block;}
  .about-item span{font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--plum-soft);}
  @media (max-width:860px){ .about .wrap{grid-template-columns:1fr;} }

  /* COLLECTION */
  .collection{
    padding:20px 0 100px;
    background:var(--paper);
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  }
  .collection-head{text-align:center; padding-top:80px; margin-bottom:56px;}
  .collection-head .eyebrow{display:block; margin-bottom:16px;}
  .collection-head h2{font-size:clamp(32px,4vw,46px);}
  .collection-head .press-divider{margin-top:26px;}

  .grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:30px;
  }
  @media (max-width:900px){ .grid{grid-template-columns:repeat(2,1fr);} }
  @media (max-width:620px){ .grid{grid-template-columns:1fr;} }

  .card{
    background:var(--ivory);
    border:1px solid var(--line);
    display:flex; flex-direction:column;
    transition:transform .35s ease, box-shadow .35s ease;
  }
  .card:hover{transform:translateY(-5px); box-shadow:0 22px 40px -20px rgba(62,23,48,0.35);}
  .card-media{position:relative; aspect-ratio:1/1; overflow:hidden; cursor:pointer;}
  .card-media img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease;}
  .card:hover .card-media img{transform:scale(1.05);}
  .card-media:focus-visible{outline:2px solid var(--gold); outline-offset:-2px;}
  .view-details-hint{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    background:rgba(43,33,25,0.38); color:var(--ivory);
    font-family:'Jost',sans-serif; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:500;
    opacity:0; transition:opacity .3s ease; pointer-events:none;
  }
  .card:hover .view-details-hint,
  .card-media:focus-visible .view-details-hint{opacity:1;}
  .badge{
    position:absolute; top:14px; left:14px;
    background:var(--rose-deep); color:var(--ivory);
    font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
    padding:6px 11px; font-weight:500;
  }
  .specimen{
    position:absolute; top:14px; right:14px;
    font-family:'Cormorant Garamond',serif; font-style:italic; font-size:14px;
    color:var(--ivory); background:rgba(62,23,48,0.55); padding:4px 10px;
  }
  .card-body{padding:22px 22px 24px; display:flex; flex-direction:column; flex:1;}
  .card-body .eyebrow{font-size:10.5px; margin-bottom:8px;}
  .card-body h3{font-size:23px; line-height:1.2;}
  .card-body p{font-size:14px; color:var(--plum-soft); margin-top:10px; flex:1;}
  .card-body p.price{flex:none; font-family:'Cormorant Garamond',serif; font-size:19px; margin-top:12px;}
  .price-old{text-decoration:line-through; color:var(--rose); opacity:.7; font-size:15px; margin-right:8px;}
  .price-now{color:var(--gold); font-weight:600;}
  .card-actions{
    margin-top:18px; padding-top:14px; border-top:1px solid var(--line);
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  }
  .card-details-btn{
    background:none; border:none; padding:0; margin:0; cursor:pointer;
    font-family:'Jost',sans-serif; font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:500;
    color:var(--plum-soft); text-decoration:underline; text-underline-offset:3px;
  }
  .card-details-btn:hover{color:var(--rose-deep);}
  .card-cta{
    display:inline-flex; align-items:center; gap:8px;
    font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:500;
    color:var(--plum); text-decoration:none;
  }
  .card-cta svg{width:15px; height:15px;}
  .card-cta:hover{color:var(--rose-deep);}

  /* PRODUCT DETAILS MODAL */
  .product-modal-overlay{
    position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
    background:rgba(43,33,25,0.55); padding:24px;
    opacity:0; visibility:hidden; transition:opacity .28s ease, visibility 0s linear .28s;
  }
  .product-modal-overlay.is-open{
    opacity:1; visibility:visible; transition:opacity .28s ease, visibility 0s linear 0s;
  }
  body.modal-open{overflow:hidden;}
  .product-modal{
    position:relative; background:var(--ivory); max-width:920px; width:100%; max-height:88vh;
    overflow-y:auto; border-radius:2px; box-shadow:0 30px 70px -20px rgba(43,33,25,0.55);
    display:grid; grid-template-columns:1fr; transform:translateY(14px); transition:transform .28s ease;
  }
  .product-modal-overlay.is-open .product-modal{transform:translateY(0);}
  .product-modal-close{
    position:absolute; top:14px; right:14px; z-index:2; width:38px; height:38px;
    border-radius:50%; border:1px solid var(--line); background:var(--ivory); color:var(--plum);
    display:flex; align-items:center; justify-content:center; cursor:pointer;
  }
  .product-modal-close svg{width:16px; height:16px;}
  .product-modal-close:hover{background:var(--plum); color:var(--ivory); border-color:var(--plum);}
  .product-modal-content{display:grid; grid-template-columns:1fr 1fr;}
  .pm-gallery{padding:0;}
  .pm-gallery-main{aspect-ratio:1/1; overflow:hidden; background:var(--paper);}
  .pm-gallery-main img{width:100%; height:100%; object-fit:cover; display:block;}
  .pm-gallery-thumbs{display:flex; gap:8px; padding:10px 14px; flex-wrap:wrap;}
  .pm-thumb{
    width:56px; height:56px; padding:0; border-radius:2px; overflow:hidden; cursor:pointer;
    border:2px solid transparent; background:none;
  }
  .pm-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
  .pm-thumb.is-active{border-color:var(--gold);}
  .pm-body{padding:38px 40px 40px;}
  .pm-body .eyebrow{display:block; margin-bottom:10px;}
  .pm-body h3{font-size:28px; line-height:1.15;}
  .pm-price{font-family:'Cormorant Garamond',serif; font-size:22px; margin-top:12px;}
  .pm-sku{font-size:12.5px; color:var(--plum-soft); margin-top:8px; letter-spacing:.04em;}
  .pm-desc{margin-top:18px; color:var(--plum-soft); font-size:14.5px; line-height:1.7;}
  .pm-desc p{margin:0 0 12px;}
  .pm-desc p:last-child{margin-bottom:0;}
  .pm-attrs{width:100%; border-collapse:collapse; margin-top:20px; font-size:13.5px;}
  .pm-attrs th, .pm-attrs td{text-align:left; padding:8px 10px; border-bottom:1px solid var(--line);}
  .pm-attrs th{color:var(--plum); font-weight:500; width:38%;}
  .pm-attrs td{color:var(--plum-soft);}
  .pm-wa-btn{
    margin-top:26px; display:inline-flex; align-items:center; gap:8px;
    background:var(--plum); color:var(--ivory); padding:13px 24px; border-radius:2px;
    font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; font-weight:500; text-decoration:none;
  }
  .pm-wa-btn:hover{background:var(--plum-soft);}
  .pm-wa-btn svg{width:15px; height:15px;}
  @media (max-width:760px){
    .product-modal-content{grid-template-columns:1fr;}
    .pm-body{padding:28px 24px 32px;}
  }

  .more-note{
    text-align:center; margin-top:56px; color:var(--plum-soft); font-size:15px;
  }
  .more-note a{color:var(--plum); text-decoration:underline; text-underline-offset:3px;}

  /* CONTACT / FOOTER */
  .contact{padding:96px 0 40px; text-align:center;}
  .contact .eyebrow{display:block; margin-bottom:16px;}
  .contact h2{font-size:clamp(30px,4vw,44px); max-width:600px; margin:0 auto;}
  .contact p{max-width:460px; margin:18px auto 0; color:var(--plum-soft); font-size:15.5px;}
  .contact-links{
    display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:38px;
  }
  .contact-links a{
    display:inline-flex; align-items:center; justify-content:center;
    width:52px; height:52px; border-radius:50%;
    border:1px solid var(--plum); color:var(--plum);
    text-decoration:none; transition:background .2s ease, color .2s ease, transform .2s ease;
  }
  .contact-links a svg{ width:22px; height:22px; }
  .contact-links a.whatsapp{background:var(--plum); color:var(--ivory); border-color:var(--plum);}
  .contact-links a:hover{background:rgba(62,23,48,0.06); transform:translateY(-2px);}
  .contact-links a.whatsapp:hover{background:var(--plum-soft); color:var(--ivory);}

  footer{
    margin-top:80px; padding:26px 0; border-top:1px solid var(--line);
    text-align:center; font-size:12.5px; color:var(--plum-soft); letter-spacing:.02em;
  }

  /* Narrow phones */
  @media (max-width:480px){
    .wrap{padding:0 20px;}
    .nav{padding:14px 20px;}
    .hero{padding:56px 0 44px;}
    .hero-collage{height:260px;}
    .hc3{width:80px; height:80px;}
    .hero-actions{flex-direction:column; align-items:stretch;}
    .hero-actions a{justify-content:center;}
    .stats-strip .wrap{justify-content:flex-start; gap:24px 32px;}
    .stat{flex:1 1 40%;}
    .collection-head{padding-top:56px;}
    .contact-links{gap:12px;}
    .contact-links a{width:46px; height:46px;}
  }

/* ---------- WooCommerce compatibility ---------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info{
  max-width:1120px; margin:20px auto; padding:14px 20px; border-left:4px solid var(--gold);
  background:var(--paper); list-style:none; font-size:14px;
}
.no-products-note{
  grid-column:1/-1; text-align:center; color:var(--plum-soft); padding:40px 0;
}
