/* FIG TIN product pages. Rules below are copied from the homepage (index.html) so the pages share its identity. */
:root{
  --bg:#f6f7f5; --ink:#111; --paper:#f4eedd; --dark:#141311; --line:#e3e3df;
  --kraft:#6e5d4d;
  --mono:'Space Mono',ui-monospace,monospace;
  --sans:'Archivo','Helvetica Neue',Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--mono);font-size:14px;line-height:1.6}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}

.announce{background:#555;color:#fff;text-align:center;padding:8px 12px;font-size:13px}

header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;display:grid;grid-template-columns:240px 1fr 110px}
.brand{display:flex;align-items:center;gap:12px;padding:12px 22px;border-right:1px solid var(--line)}
.brand .lg{height:60px;flex:none;display:flex;align-items:center}
.brand .lg img{display:block;height:100%;width:auto;aspect-ratio:512/443;object-fit:contain}
.brand .name{font-family:var(--sans);font-weight:800;font-size:31px;line-height:.95;letter-spacing:.02em;text-transform:uppercase}
.brand .name small{display:block;font-family:var(--mono);font-weight:700;font-size:10.5px;letter-spacing:.16em;margin-top:5px}
.mid{display:flex;flex-direction:column}
.search{display:flex;align-items:center;gap:14px;padding:0 24px;height:52px;border-bottom:1px solid var(--line)}
.search input{border:0;outline:0;background:none;width:100%;font-family:var(--mono);font-size:14px}
.search input::placeholder{color:#aaa}
nav{display:flex;justify-content:center;gap:34px;height:46px;align-items:center;flex-wrap:wrap;padding:0 16px}
nav a{font-family:var(--sans);font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase}
nav a:hover{text-decoration:underline;text-underline-offset:6px}
.cart{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-left:1px solid var(--line);background:#fff;cursor:pointer;font:inherit;font-size:15px}
.cart svg{width:26px;height:26px}

main{max-width:1560px;margin:0 auto;padding:30px 232px 90px}
h2.section{font-family:var(--sans);font-weight:800;font-size:32px;letter-spacing:.02em;text-transform:uppercase;margin:6px 0 14px}

/* banner, photo frame and tag: same as the homepage product banners */
.banner{position:relative;width:min(1502px,calc(100vw - 16px));height:659px;margin-left:50%;transform:translateX(-50%);overflow:hidden;margin-bottom:54px}
.banner.dark{background:#111}
.banner::before{content:"";position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;pointer-events:none}
.banner[data-product-id="pearl"]::before{background-image:url("verdant-pearl-01-background.jpeg")}
.banner[data-product-id="onyx"]::before{background-image:url("obsidian-button-02-background.jpg")}
.banner[data-product-id="citrus"]::before{background-image:url("citrus-pearl-03-background.jpeg")}
.banner .ttl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;text-align:center;color:#fff;
  font-family:var(--sans);font-weight:800;font-size:44px;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;text-shadow:0 2px 18px rgba(0,0,0,.55);pointer-events:none}

.photo{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:300px;aspect-ratio:3/4;background:#1c1b19;box-shadow:0 18px 50px rgba(0,0,0,.6);overflow:hidden}
.photo.l{left:12%}.photo.r{right:12%}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.third-art{position:absolute;inset:0;z-index:1}
.third-art img{width:100%;height:100%;object-fit:cover}
.photo .fb{position:absolute;inset:0;z-index:2;pointer-events:none;transition:transform .6s cubic-bezier(.2,.75,.25,1),opacity .35s ease}
.photo.l:hover .fb,.photo.l:focus-within .fb{transform:translateX(-100%);opacity:0}
.photo.r:hover .fb,.photo.r:focus-within .fb{transform:translateX(100%);opacity:0}
.photo .fb img{width:100%;height:100%;object-fit:cover}
.banner[data-product-id="onyx"] .photo .fb img{transform:rotate(180deg);transform-origin:center}

.label{position:absolute;z-index:3;bottom:56px;background:#f1ede2;color:#111;padding:12px 14px;width:250px;font-size:9.5px;line-height:1.35;letter-spacing:.02em;border:1px solid #cfc9b8;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.label b{font-size:12.5px;display:block;font-family:var(--sans);letter-spacing:.04em}
.label hr{border:0;border-top:1px solid #bbb;margin:6px 0}
.label .buy{display:flex;justify-content:space-between;align-items:center;margin-top:9px}
.label .buy span{font-weight:700;font-size:13px}
.label.r{right:14%}.label.l{left:14%}
button.add{font-family:var(--sans);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:12px;background:#111;color:#fff;border:0;padding:9px 16px;cursor:pointer;transition:.2s}
button.add:hover{background:#444}
button.add.done{background:#6f8a5c}

/* boxes: same as the homepage .tri and .custom sections */
.tri{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--line);background:#fff;margin-bottom:54px}
.tri div{padding:34px 30px;border-right:1px solid var(--line)}
.tri div:last-child{border-right:0}
.tri h3{font-family:var(--sans);font-weight:800;font-size:20px;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px}
.tri p{font-size:12.5px;color:#444}
.custom{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);margin-bottom:54px}
.custom .l{background:var(--paper);display:grid;place-items:center;padding:clamp(20px,6vw,50px)}
.custom .r{min-width:0;padding:clamp(20px,6vw,44px)}
.custom p{margin:10px 0 18px;max-width:46ch}
.custom h3{font-family:var(--sans);font-weight:800;font-size:20px;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px}

footer{background:var(--dark);color:#cfcbc2;padding:56px 40px 40px;text-align:center;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
footer .lg{width:108px;margin:0 auto 16px;padding:10px;background:var(--paper);border-radius:14px;box-sizing:border-box}
footer .lg img{display:block;width:100%;height:auto}
footer .links{display:flex;gap:26px;justify-content:center;margin:18px 0;flex-wrap:wrap}
footer .links a:hover{text-decoration:underline}

/* collection & product page additions, built from the same tokens */
.crumb{display:inline-block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px;text-decoration:underline;text-underline-offset:4px}
.collection-header{margin-bottom:32px;border-bottom:1px solid var(--line);padding-bottom:20px}
.collection-header h1{font-family:var(--sans);font-weight:800;font-size:clamp(28px,4vw,42px);letter-spacing:.02em;text-transform:uppercase;line-height:1.1;margin-bottom:8px}
.collection-header p{font-size:14px;color:#555;max-width:65ch}

/* Product grid */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:1fr;gap:24px;margin-bottom:54px}
.product-card{background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;text-align:left;position:relative}
.product-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.product-card-img{position:relative;width:100%;aspect-ratio:3/4;background:#1c1b19;overflow:hidden}
.product-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.product-card:hover .product-card-img img{transform:scale(1.03)}
.product-card-body{padding:16px 18px 20px;display:flex;flex-direction:column;flex:1;justify-content:space-between}
.product-card-title{font-family:var(--sans);font-weight:800;font-size:16px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px;line-height:1.2}
.product-card-meta{font-size:11px;color:#666;margin-bottom:12px}
.product-card-footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid var(--line);margin-top:auto}
.product-card-price{font-family:var(--sans);font-weight:700;font-size:15px}
.product-card-btn{font-family:var(--sans);font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;background:#111;color:#fff;border:0;padding:8px 12px;cursor:pointer}
.product-card-btn:hover{background:#444}
.product-card--placeholder{cursor:default;background:#faf7f1;border-style:dashed}
.product-card--placeholder:hover{transform:none;box-shadow:none}
.product-card--placeholder .product-card-img{background:#ece6da;display:flex;align-items:center;justify-content:center}
.product-card--placeholder .product-card-img img{width:42%;height:auto;object-fit:contain;opacity:.35}
.product-card--placeholder:hover .product-card-img img{transform:none}
.product-card--placeholder .product-card-title{color:#8a8478}
.product-card--placeholder .product-card-meta{margin-bottom:0}

/* Product Modal — FIG TIN refined gallery */
.product-modal{position:fixed;inset:0;background:rgba(17,17,17,.72);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s ease;z-index:120}
.product-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.product-modal-card{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);width:min(900px,100%);height:min(620px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden;background:#f4efe8;border:1px solid #d8d0c1;box-shadow:0 25px 70px rgba(0,0,0,.38)}
.product-modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;background:#111;color:#fff;cursor:pointer;font-size:22px;line-height:1;z-index:10;display:flex;align-items:center;justify-content:center}
.product-modal-gallery{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f4eee8;overflow:hidden}
.product-modal-main-img{position:relative;flex:1 1 auto;min-height:0;width:100%;overflow:hidden;background:#f4eee8;display:flex;align-items:center;justify-content:center}
.product-modal-main-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.product-modal-thumbs{display:flex;flex:0 0 auto;gap:8px;padding:10px 12px;background:#f4eee8;border-top:1px solid #e1d9cf;overflow-x:auto}
.product-modal-thumbs:empty{display:none}
.product-modal-thumb{width:56px;height:56px;flex:none;border:2px solid transparent;background:#e7e0d6;cursor:pointer;padding:0;overflow:hidden;opacity:.7;transition:opacity .2s ease,border-color .2s ease}
.product-modal-thumb:hover{opacity:1}
.product-modal-thumb.active{border-color:#111;opacity:1}
.product-modal-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-modal-body{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;min-height:0;overflow-y:auto;padding:48px 28px 26px}
.product-modal-body h3{font-family:var(--sans);font-weight:800;font-size:22px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;line-height:1.1;padding-right:30px}
.product-modal-body .meta{font-size:12px;letter-spacing:.04em;line-height:1.7;color:#555;margin-bottom:14px}
.product-modal-body .description{font-size:13px;line-height:1.8;color:#282828;margin-bottom:18px}
.product-modal-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid #d8d0c1}
.product-modal-price strong{font-size:24px;font-family:var(--sans);font-weight:800;white-space:nowrap}
.product-modal .add{font-family:var(--sans);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:12px;background:#111;color:#fff;border:0;padding:11px 18px;cursor:pointer;transition:background .2s;white-space:nowrap}
.product-modal .add:hover{background:#444}
.product-modal .add.done{background:#6f8a5c}

.store-button{display:inline-block;border:1px solid #111;background:#111;color:#fff;padding:12px 18px;font-family:var(--sans);font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.store-button:hover{background:#444}
.more-links{display:flex;gap:12px;flex-wrap:wrap}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media(max-width:1100px){
  main{padding:24px 14px 70px}
  header{grid-template-columns:1fr 80px}
  .brand{border-right:0}.mid{grid-column:1/-1;order:3}
  nav{gap:18px;height:auto;padding:10px}nav a{font-size:13px}
  .product-grid{grid-template-columns:repeat(4,1fr);gap:16px}
  .tri,.custom{grid-template-columns:1fr}
  .tri div{border-right:0;border-bottom:1px solid var(--line)}
  .tri div:last-child{border-bottom:0}
}
@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .product-modal{padding:12px;align-items:center}
  .product-modal-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;width:min(520px,100%);height:auto;max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
  .product-modal-gallery,.product-modal-body{min-width:0;overflow:visible}
  .product-modal-main-img{height:min(52dvh,420px);min-height:230px;flex:none}
  .product-modal-thumbs{padding:8px 12px}
  .product-modal-thumb{width:48px;height:48px}
  .product-modal-body{padding:22px 18px 20px;min-height:0}
  .product-modal-body h3{padding-right:40px}
  .product-modal-price{margin-top:14px}
}
@media(max-width:600px){
  .brand .lg{height:42px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .product-card-body{padding:12px 10px 14px}
  .product-card-title{font-size:13px}
  .product-card-meta{font-size:10px;margin-bottom:8px}
  .product-card-price{font-size:13px}
  .product-card-btn{padding:6px 8px;font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .photo .fb,button.add{transition:none}
}
