/* M7 Academy — loja editorial. Tokens alinhados a style.css do site institucional. */
:root{--red:#F1091B;--red-dark:#c70919;--ink:#101010;--graphite:#2a2a2c;--paper:#f6f6f4;--white:#fff;--muted:#656565;--line:#dcdcd8;--soft:#ecece8}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:3px}
h1,h2,h3{font-family:'Manrope',Arial,sans-serif;margin:0;font-weight:700}
p{margin:0}
.container{width:min(1320px,calc(100% - 100px));margin-inline:auto}
.red{color:var(--red)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;left:16px;top:-100px;background:var(--white);padding:12px;z-index:100}.skip:focus{top:8px}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:2px;text-transform:uppercase;color:var(--red);margin-bottom:14px}

/* Botões */
.btn{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:16px 22px;border:0;font-weight:600;font-size:15px;line-height:1.2;transition:background .2s,transform .2s}
.btn span{font-size:20px;line-height:1}
.btn:hover{transform:translateY(-2px)}
.btn--red{background:var(--red);color:var(--white)}.btn--red:hover{background:var(--red-dark)}
.btn--dark{background:var(--ink);color:var(--white)}.btn--dark:hover{background:#343434}
.btn--block{display:flex;width:100%}
.link-arrow{font-size:14px;font-weight:600;white-space:nowrap;border-bottom:1px solid currentColor;padding-bottom:2px}
.link-arrow:hover{color:var(--red)}

/* Cabeçalho */
.store-header{background:var(--white);border-bottom:1px solid var(--line)}
.store-header__top{display:flex;align-items:center;gap:32px;min-height:78px}
.store-brand{display:flex;align-items:center;gap:14px;flex-shrink:0}
.store-brand img{display:block;width:44px;height:44px}
.store-brand__divider{width:1px;height:28px;background:#c4c4c0}
.store-brand__name{font-family:'Manrope',Arial,sans-serif;font-weight:700;font-size:21px;letter-spacing:-.5px}
.store-search{flex:1;max-width:620px;display:flex;margin-inline:auto}
.store-search input{flex:1;min-width:0;height:46px;padding:0 16px;border:1px solid #c9c9c5;border-right:0;background:var(--paper);border-radius:0;font-size:15px}
.store-search input:focus{background:var(--white);border-color:var(--ink);outline:none}
.store-search button{width:52px;height:46px;border:0;background:var(--ink);display:grid;place-items:center}
.store-search button:hover{background:var(--red)}
.store-search svg{width:20px;height:20px;fill:none;stroke:var(--white);stroke-width:2;stroke-linecap:round}
.store-back{font-size:14px;font-weight:500;white-space:nowrap;flex-shrink:0}
.store-back:hover{color:var(--red)}
.store-nav{background:var(--ink);color:#d8d8d8}
.store-nav__inner{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.store-nav__inner::-webkit-scrollbar{display:none}
.store-nav a{position:relative;padding:13px 16px;font-size:14px;font-weight:500;white-space:nowrap}
.store-nav a:first-child{padding-left:0}
.store-nav a:hover{color:var(--white)}
.store-nav a.is-active{color:var(--white)}
.store-nav a.is-active::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;background:var(--red)}
.store-nav a:first-child.is-active::after{left:0}

/* Hero */
.store-hero{background:var(--paper);border-bottom:1px solid var(--line);overflow:hidden}
.store-hero__inner{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:48px;min-height:520px;padding-block:64px}
.store-hero h1{font-size:clamp(40px,5vw,74px);line-height:1.03;letter-spacing:-.045em;font-weight:700;max-width:12ch;margin-bottom:24px}
.store-hero__sub{font-size:18px;color:var(--muted);max-width:44ch;margin-bottom:34px}
.store-hero__art{position:relative;height:420px}
.hero-cover{position:absolute;top:50%;width:min(210px,42%);transition:transform .4s ease}
.hero-cover--1{left:4%;transform:translateY(-46%) rotate(-7deg)}
.hero-cover--2{left:30%;transform:translateY(-54%) rotate(1deg);z-index:2;width:min(240px,48%)}
.hero-cover--3{left:58%;transform:translateY(-44%) rotate(8deg)}
.store-hero__art:hover .hero-cover--1{transform:translateY(-48%) rotate(-9deg) translateX(-8px)}
.store-hero__art:hover .hero-cover--3{transform:translateY(-46%) rotate(10deg) translateX(8px)}

/* Seções */
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:32px}
.section-head h2{font-size:clamp(26px,2.6vw,38px);letter-spacing:-.03em;line-height:1.15}
.shelf-section,.categories-section{padding:72px 0 0}
.catalog-section{padding:72px 0 96px}
.shelf{display:grid;grid-template-columns:repeat(5,1fr);gap:28px}
.shelf .product-card__summary{display:none}

/* Capas provisórias — cada tema tem composição própria, todas no mesmo sistema. */
.cover{position:relative;display:flex;flex-direction:column;width:100%;aspect-ratio:2/3;container-type:inline-size;padding:9% 8% 8% 10%;overflow:hidden;border-radius:2px 5px 5px 2px;box-shadow:0 1px 2px rgba(0,0,0,.08),0 18px 34px -16px rgba(0,0,0,.4);isolation:isolate}
.cover::after{content:"";position:absolute;inset:0 auto 0 0;width:4cqw;background:linear-gradient(90deg,rgba(0,0,0,.22),rgba(255,255,255,.08) 55%,transparent);pointer-events:none}
.cover__top{display:flex;justify-content:space-between;gap:4cqw;font-size:3.4cqw;font-weight:600;letter-spacing:.2em;text-transform:uppercase;opacity:.75}
.cover__title{font-family:'Manrope',Arial,sans-serif;font-weight:800;font-size:11.5cqw;line-height:.98;letter-spacing:-.045em;margin-top:auto;overflow-wrap:break-word}
.cover__sub{font-size:4.4cqw;line-height:1.35;margin-top:5cqw;max-width:88%;opacity:.8}
.cover__mark{width:15cqw;margin-top:8cqw;fill:currentColor}
.cover__tag{position:absolute;right:8cqw;bottom:8cqw;font-size:2.9cqw;font-weight:600;letter-spacing:.12em;text-transform:uppercase;padding:1.2cqw 2.4cqw;border:1px dashed currentColor;opacity:.6}
.cover--image{padding:0}
.cover--image img{width:100%;height:100%;object-fit:cover;display:block}

.cover--ink{background:#121212;color:var(--white)}
.cover--ink::before{content:"";position:absolute;top:0;bottom:0;left:4cqw;width:2.4cqw;background:var(--red);z-index:-1}
.cover--ink .cover__mark{color:var(--red)}

.cover--red{background:var(--red);color:var(--white)}
.cover--red .cover__title{margin-top:12cqw;font-size:14cqw}
.cover--red .cover__sub{margin-top:auto}
.cover--red::before{content:"";position:absolute;right:-18cqw;top:34cqw;width:80cqw;height:80cqw;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 936 452'%3E%3Cg fill='%23fff' fill-opacity='.12'%3E%3Cpolygon points='405,2 0,433 119,433 393,146'/%3E%3Cpolygon points='603,1 321,312 321,441 602,134'/%3E%3Cpolygon points='936,0 641,6 641,85 762,87 600,303 600,452 936,0'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;z-index:-1}

.cover--paper{background:#fbfbf8;color:var(--ink);box-shadow:inset 0 0 0 1px #e2e2dd,0 1px 2px rgba(0,0,0,.08),0 18px 34px -16px rgba(0,0,0,.3)}
.cover--paper .cover__title::before{content:"";display:block;width:16cqw;height:1.8cqw;background:var(--red);margin-bottom:7cqw}
.cover--paper .cover__title{font-size:12.5cqw}
.cover--paper .cover__top{opacity:.6}

.cover--graphite{background-color:var(--graphite);background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:10% 6.667%;color:var(--white)}
.cover--graphite .cover__title{margin-top:18cqw}
.cover--graphite .cover__sub{border-left:1.4cqw solid var(--red);padding-left:4cqw}
.cover--graphite .cover__mark{margin-top:auto;color:var(--red)}

.cover--cream{background:#ece6da;color:#141414}
.cover--cream::before{content:"";position:absolute;top:0;right:0;width:62cqw;height:58%;background:var(--red);clip-path:polygon(45% 0,100% 0,100% 100%,0 100%);z-index:-1}
.cover--cream .cover__top span:last-child{color:var(--white);opacity:1}

/* Card de produto */
.product-card__link{display:flex;flex-direction:column;height:100%}
.product-card .cover{transition:transform .3s ease,box-shadow .3s ease}
.product-card__link:hover .cover{transform:translateY(-6px);box-shadow:0 1px 2px rgba(0,0,0,.08),0 26px 40px -18px rgba(0,0,0,.45)}
.product-card__meta{font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin-top:18px}
.product-card__title{font-size:18px;letter-spacing:-.4px;line-height:1.25;margin-top:6px}
.product-card__link:hover .product-card__title{color:var(--red)}
.product-card__summary{font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.status{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:14px;padding:5px 11px;border:1px solid var(--ink);font-size:11px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--red)}
.status--price{border-color:transparent;padding-left:0;font-size:15px;letter-spacing:0;text-transform:none}
.status--price::before,.status--live::before{display:none}

/* Categorias */
.category-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.category-tile{display:flex;flex-direction:column;min-height:200px;padding:24px;background:var(--white);border:1px solid #e0e0dd;transition:border-color .2s,transform .2s}
.category-tile:hover{border-color:var(--ink);transform:translateY(-3px)}
.category-tile__num{font-size:13px;font-weight:600;color:var(--red);margin-bottom:22px}
.category-tile__label{font-family:'Manrope',Arial,sans-serif;font-weight:700;font-size:19px;line-height:1.2;letter-spacing:-.3px}
.category-tile__desc{font-size:14px;color:var(--muted);line-height:1.5;margin-top:8px}
.category-tile__count{margin-top:auto;padding-top:18px;font-size:13px;font-weight:600}

/* Catálogo */
.catalog-section{border-top:1px solid var(--line);margin-top:72px}
.catalog-count{font-size:14px;color:var(--muted);white-space:nowrap}
.format-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:32px}
.format-tabs button{background:transparent;border:1px solid transparent;padding:9px 17px;font-size:14px;color:var(--muted)}
.format-tabs button:hover:not(.is-active){border-color:#999;color:var(--ink)}
.format-tabs button.is-active{background:var(--ink);color:var(--white)}
.catalog-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:48px;align-items:start}
.catalog-filters{position:sticky;top:24px}
.catalog-filters__title{font-size:12px;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.category-filters{display:flex;flex-direction:column}
.category-filters button{text-align:left;background:none;border:0;border-left:2px solid var(--line);padding:9px 0 9px 16px;font-size:15px;color:var(--muted)}
.category-filters button:hover{color:var(--ink)}
.category-filters button.is-active{border-left-color:var(--red);color:var(--ink);font-weight:600}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:44px 32px}
.product-grid--4{grid-template-columns:repeat(4,1fr)}
.product-grid[hidden],.empty-state[hidden]{display:none}
.empty-state{border:1px dashed #bdbdb8;padding:56px 32px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.empty-state__title{font-family:'Manrope',Arial,sans-serif;font-weight:700;font-size:22px;letter-spacing:-.4px}
.empty-state p:not(.empty-state__title){color:var(--muted);max-width:46ch}
.empty-state .btn{margin-top:10px}
.catalog-note{margin-top:56px;padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}

/* Produto */
.breadcrumb{display:flex;flex-wrap:wrap;gap:10px;padding-top:28px;font-size:13px;color:var(--muted)}
.breadcrumb a:hover{color:var(--red)}
.breadcrumb [aria-current]{color:var(--ink)}
.product{display:grid;grid-template-columns:minmax(260px,360px) 1fr 290px;gap:56px;align-items:start;padding:40px 0 88px}
.product__cover .cover{box-shadow:0 1px 2px rgba(0,0,0,.08),0 34px 60px -26px rgba(0,0,0,.5)}
.product__meta{font-size:12px;font-weight:650;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.product__meta a:hover{color:var(--red)}
.product__title{font-size:clamp(36px,4vw,58px);line-height:1.04;letter-spacing:-.045em}
.product__subtitle{font-family:'Manrope',Arial,sans-serif;font-size:20px;line-height:1.4;font-weight:500;color:#3a3a3a;margin-top:16px;max-width:36ch}
.product__desc{color:var(--muted);margin-top:22px;max-width:62ch}
.product__cols{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:40px;padding-top:32px;border-top:1px solid var(--line)}
.product__cols h2{font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:14px;font-family:'DM Sans',Arial,sans-serif}
.product__cols p{color:var(--muted);font-size:15px}
.product__topics{list-style:none;margin:0;padding:0;font-size:15px}
.product__topics li{padding:9px 0 9px 22px;border-bottom:1px solid #e6e6e2;position:relative}
.product__topics li::before{content:"";position:absolute;left:0;top:19px;width:10px;height:2px;background:var(--red)}
.buy{position:sticky;top:24px;background:var(--white);border:1px solid #e0e0dd;padding:26px;display:flex;flex-direction:column;gap:16px}
.buy .status{margin-top:0}
.buy__price{font-family:'Manrope',Arial,sans-serif;font-weight:700;font-size:30px;letter-spacing:-.6px}
.buy__note{font-size:14px;line-height:1.5;color:var(--muted)}
.related{padding:0 0 96px;border-top:1px solid var(--line);padding-top:64px}
.not-found{padding:96px 0 120px;max-width:640px}
.not-found h1{font-size:clamp(34px,4vw,52px);letter-spacing:-.04em;margin-bottom:16px}
.not-found p:not(.eyebrow){color:var(--muted);margin-bottom:30px}
.noscript{padding:64px 0}

/* Rodapé */
.store-footer{background:var(--ink);color:#bdbdbd;padding:48px 0 28px}
.store-footer__inner{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;padding-bottom:28px;border-bottom:1px solid #2c2c2c}
.store-brand--footer{color:var(--white)}
.store-brand--footer img{width:36px;height:36px}
.store-brand--footer .store-brand__divider{background:#444}
.store-footer nav{display:flex;gap:28px;flex-wrap:wrap;font-size:14px}
.store-footer nav a:hover{color:var(--white)}
.store-footer__bottom{padding-top:22px;font-size:13px;color:#8a8a8a}

/* Responsivo */
@media (max-width:1180px){
  .shelf{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:200px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
  .shelf>*{scroll-snap-align:start}
  .category-tiles{grid-template-columns:repeat(3,1fr)}
  .product{grid-template-columns:minmax(220px,320px) 1fr}
  .buy{grid-column:2;position:static}
  .product-grid--4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .container{width:calc(100% - 32px)}
  .store-header__top{flex-wrap:wrap;gap:12px 16px;padding-block:14px}
  .store-back{margin-left:auto;font-size:13px}
  .store-search{order:3;flex-basis:100%;max-width:none}
  .store-hero__inner{grid-template-columns:1fr;min-height:0;padding-block:48px 24px;gap:8px}
  .store-hero__art{height:300px;max-width:440px;width:100%;margin-inline:auto}
  .catalog-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .catalog-filters{position:static}
  .category-filters{flex-direction:row;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  .category-filters::-webkit-scrollbar{display:none}
  .category-filters button{border:1px solid var(--line);padding:8px 14px;white-space:nowrap;font-size:14px;background:var(--white)}
  .category-filters button.is-active{border-color:var(--ink);background:var(--ink);color:var(--white)}
  .product{grid-template-columns:1fr;gap:32px;padding-top:24px}
  .product__cover{max-width:300px}
  .buy{grid-column:auto}
}
@media (max-width:640px){
  .store-brand img{width:38px;height:38px}
  .store-brand__name{font-size:19px}
  .store-hero h1{font-size:40px}
  .store-hero__sub{font-size:16px}
  .store-hero__art{height:250px}
  .section-head{flex-wrap:wrap;margin-bottom:24px}
  .shelf-section,.categories-section{padding-top:56px}
  .catalog-section{margin-top:56px;padding:56px 0 72px}
  .shelf{grid-auto-columns:160px;gap:20px}
  .category-tiles{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:220px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
  .category-tile{scroll-snap-align:start;min-height:180px}
  .format-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .format-tabs button{white-space:nowrap}
  .product-grid,.product-grid--4{grid-template-columns:repeat(2,1fr);gap:32px 16px}
  .product-card__title{font-size:16px}
  .product-card__summary{display:none}
  .product__cols{grid-template-columns:1fr}
  .product__cover{max-width:240px}
}
