/* Heritage storefront theme: parchment paper, woven-art backdrop, framed products. Loaded on customer pages only. */
:root{
  --paper:#f4ecde; --paper-2:#efe3cf; --ink:#3b2a1d; --gold:#b28a60; --gold-d:#8b5e34; --wine:#5a2d1f;
  --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.heritage{
  background-color:var(--paper)!important;
  background-image:
    var(--grain),
    linear-gradient(rgba(244,236,222,.90),rgba(244,236,222,.94)),
    var(--weave-bg,none)!important;
  background-size:160px 160px,cover,cover!important;
  background-position:0 0,center,center!important;
  background-attachment:scroll,fixed,fixed!important;
  color:var(--ink)!important;
}

/* top announcement + header */
.heritage .shop-topbar{background:var(--wine);letter-spacing:1.2px;text-transform:uppercase;font-size:11px}
.heritage header.shop-header{background:rgba(244,236,222,.96);border-bottom:3px double var(--gold)}
.heritage .brand span{letter-spacing:.8px}
.heritage .shop-header nav a{text-transform:uppercase;letter-spacing:1.6px;font-size:12px;border-radius:2px;font-weight:600}
.heritage .shop-header nav a.active{background:transparent;color:var(--gold-d);box-shadow:inset 0 -2px 0 var(--gold-d)}
.heritage .shop-header nav a:hover{background:rgba(178,138,96,.14)}
.heritage .utilities .signin{border-radius:2px;letter-spacing:1px;text-transform:uppercase;font-size:12px}

/* headings with ornament */
.heritage h1,.heritage h2{font-family:'Playfair Display',serif}
.heritage .products-section h2,
.heritage .shop-container h1,
.heritage .page-title{position:relative}
.heritage .title-line{height:auto!important;background:none!important;width:auto!important;margin:6px auto 44px!important;display:flex;align-items:center;justify-content:center;gap:14px}
.heritage .title-line::before,.heritage .title-line::after{content:"";height:1px;width:90px;background:linear-gradient(90deg,transparent,var(--gold))}
.heritage .title-line::after{background:linear-gradient(270deg,transparent,var(--gold))}
.heritage .title-line{font-size:0}
.heritage .title-line::before{margin-right:0}
.heritage .title-line span{display:none}

/* framed product cards ("gallery frames") */
.heritage .product-card{
  background:#fbf6ec!important;
  border:1px solid var(--gold)!important;
  border-radius:3px!important;
  padding:10px!important;
  box-shadow:0 14px 28px -16px rgba(59,42,29,.45),0 2px 0 rgba(255,255,255,.6) inset!important;
  position:relative;
}
.heritage .product-card::before{content:"";position:absolute;inset:5px;border:1px solid rgba(178,138,96,.45);pointer-events:none;z-index:6}
.heritage .product-card img{border:0!important;border-radius:0!important;height:300px!important;filter:saturate(1.02) contrast(1.02);transition:transform .5s ease}
.heritage .product-card:hover img{transform:scale(1.03)}
.heritage .product-card .product-content,.heritage .product-card .product-info,.heritage .product-card .card-body{padding:14px 8px 8px!important;text-align:center}
.heritage .product-shop{color:var(--gold-d)!important;letter-spacing:2.5px!important;font-size:10.5px!important}
.heritage .product-content h3{font-size:1.15rem!important}
.heritage .quick-view-btn{border-radius:0!important;background:rgba(251,246,236,.96)!important;border:1px solid var(--gold);letter-spacing:2px}
.heritage .product-card>div{overflow:hidden}

/* hero on home */
.heritage .hero-full{border-bottom:3px double var(--gold)}
.heritage .hero-full .b{border-radius:2px!important;letter-spacing:1.5px;text-transform:uppercase;font-size:12.5px}
.heritage .perk{border-radius:3px;border:1px solid var(--gold);background:#fbf6ec}

/* general buttons: squared, engraved look */
.heritage .btn-minimal,.heritage .btn-main,.heritage .pay-btn{border-radius:2px!important;letter-spacing:2px;text-transform:uppercase}

/* cards on inner pages */
.heritage .order-box,.heritage .blog-card,.heritage .pay-card,.heritage .cart-table{
  background:#fbf6ec!important;border-color:rgba(178,138,96,.55)!important;border-radius:4px!important;
}
.heritage .artisan-card,.heritage .artisan{border-radius:3px!important;border:1px solid var(--gold)!important;background:#fbf6ec!important}

/* spotlight (featured piece) */
.spotlight{max-width:1100px;margin:70px auto 0;padding:0 24px}
.spot-frame{display:grid;grid-template-columns:1.1fr 1fr;background:#fbf6ec;border:1px solid var(--gold);padding:12px;box-shadow:0 30px 50px -30px rgba(59,42,29,.55);position:relative}
.spot-frame::before{content:"";position:absolute;inset:6px;border:1px solid rgba(178,138,96,.5);pointer-events:none}
.spot-img{position:relative;min-height:420px;background:#e9dcc6 center/cover no-repeat}
.spot-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.spot-body{padding:48px 44px;display:flex;flex-direction:column;justify-content:center;text-align:left}
.spot-eyebrow{font-size:11px;letter-spacing:3.5px;text-transform:uppercase;color:var(--gold-d);font-weight:700;margin-bottom:14px}
.spot-body h3{font-family:'Playfair Display',serif;font-size:2.3rem;line-height:1.15;margin:0 0 6px;color:var(--ink)}
.spot-by{font-style:italic;color:#7b6650;margin-bottom:18px;font-family:'Playfair Display',serif}
.spot-body p{color:#5d4a36;line-height:1.8;font-size:15px;margin:0 0 22px;max-height:7.2em;overflow:hidden}
.spot-price{font-family:'Playfair Display',serif;font-size:1.8rem;color:var(--wine);margin-bottom:22px}
.spot-cta{align-self:flex-start;background:var(--ink);color:#fff;text-decoration:none;padding:14px 30px;letter-spacing:2.5px;text-transform:uppercase;font-size:12px;font-weight:600;border:1px solid var(--ink);transition:.25s}
.spot-cta:hover{background:var(--gold-d);border-color:var(--gold-d)}
.orn{display:flex;align-items:center;justify-content:center;gap:14px;color:var(--gold);margin:0 auto 34px;font-size:15px}
.orn::before,.orn::after{content:"";height:1px;width:110px;background:linear-gradient(90deg,transparent,var(--gold))}
.orn::after{background:linear-gradient(270deg,transparent,var(--gold))}
@media(max-width:820px){.spot-frame{grid-template-columns:1fr}.spot-body{padding:30px 24px}.spot-img{min-height:300px}}

/* footer */
.heritage .shop-footer{background:#2f2016;border-top:3px double var(--gold)}

/* phones */
body.heritage{overflow-x:hidden}
@media(max-width:640px){
  .heritage .shop-header .bar{padding:10px 14px;gap:8px}
  .heritage .brand img{height:38px}
  .heritage .brand span{display:none}
  .heritage .utilities{gap:2px}
  .heritage .utilities a{width:36px;height:36px}
  .heritage .utilities .signin{padding:0 12px;height:34px;margin-left:2px}
  .heritage .shop-container,.heritage .cart-container,.heritage .product-container,.heritage .page-container{padding-left:16px!important;padding-right:16px!important}
  .heritage .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .heritage .product-card{padding:6px!important}
  .heritage .product-card img{height:150px!important}
  .heritage .cart-table{display:block;overflow-x:auto}
  .heritage .checkout-wrapper{padding:0 14px!important}
  .heritage .hero-full .in{padding:56px 20px}
  .heritage .shop-footer .in{padding:40px 20px 24px}
}
