.category-back{display:inline-flex;margin-bottom:18px;color:var(--copper);font-size:.78rem;font-weight:800;letter-spacing:.1em;text-decoration:none;text-transform:uppercase}
.category-back:hover{color:var(--copper-light)}
.page-hero{position:relative;isolation:isolate;overflow:hidden}
.page-hero>*{position:relative;z-index:1}
.page-hero::after{content:"";position:absolute;z-index:0;top:50%;right:clamp(70px,10vw,190px);width:clamp(210px,19vw,350px);aspect-ratio:1;transform:translateY(-50%);background:url("assets/krakenmaille-mark.png") center / contain no-repeat;filter:sepia(1) saturate(.7);opacity:.14;pointer-events:none}
.product-list{padding:clamp(34px,5vw,72px) clamp(18px,6vw,90px);background-color:var(--paper);background-image:radial-gradient(circle at 50% 0,rgba(255,255,255,.42),transparent 34rem),repeating-linear-gradient(100deg,rgba(75,52,27,.018) 0 1px,transparent 1px 8px)}
.product-list-heading{max-width:850px;margin:0 auto 28px;text-align:center}
.product-list-heading h2{margin:0;color:var(--ink);font-family:"Cormorant Garamond",serif;font-size:clamp(2.8rem,5vw,4.5rem);line-height:.94}
.product-list-heading p{max-width:680px;margin:14px auto 0;color:var(--muted);line-height:1.65}
.product-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,26px);max-width:1400px;margin:0 auto}
.product-entry{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:rgba(246,235,215,.92);border:1px solid rgba(120,73,39,.42);box-shadow:0 8px 22px rgba(50,35,21,.13),inset 0 0 0 3px rgba(255,255,255,.22)}
.product-entry-media{display:grid;grid-template-columns:1fr;gap:2px;background:rgba(120,73,39,.32)}
.product-entry-media.two-images{grid-template-columns:1fr 1fr}
.product-entry-media.three-images{grid-template-columns:repeat(3,1fr)}
.product-entry-media img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--green-900)}
.product-entry-content{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:22px}
.product-entry h3{margin:0;color:var(--ink);font-family:"Cormorant Garamond",serif;font-size:clamp(2rem,3vw,2.65rem);line-height:.98}
.product-entry p{margin:12px 0 16px;color:var(--muted);font-size:.92rem;line-height:1.6}
.product-details{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px;padding:0;list-style:none}
.product-details li{padding:6px 9px;background:rgba(244,234,215,.86);border:1px solid rgba(115,71,39,.3);color:#453e34;font-size:.68rem;font-weight:700}
.product-entry .button{width:min(100%,310px);margin-top:auto;align-self:center;text-align:center}
.product-photo-placeholder{display:flex;aspect-ratio:16/10;align-items:center;justify-content:center;background:radial-gradient(circle at center,var(--green-700),var(--green-950));color:var(--copper-light);font-family:"Cormorant Garamond",serif;font-size:4.5rem}
@media(max-width:930px){.product-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-hero::after{right:35px;width:190px;opacity:.1}}
@media(max-width:700px){.page-hero::after{display:none}}
@media(max-width:620px){.product-entry-grid{grid-template-columns:1fr}.product-entry-media.two-images,.product-entry-media.three-images{grid-template-columns:1fr}.product-entry-content{padding:19px}.product-entry .button{width:100%}}
@media(min-width:1500px){.product-list-heading{max-width:none}.product-list-heading p{max-width:none;white-space:nowrap}}

.product-entry-grid.single-entry{grid-template-columns:minmax(0,860px);justify-content:center}
.earring-gallery{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
@media(max-width:620px){.earring-gallery{grid-template-columns:1fr}}


.scale-gallery{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
@media(max-width:620px){.scale-gallery{grid-template-columns:1fr}}

.special-project-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;background:transparent;padding:8px}
.special-project-gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;background:#d7d7d4}
@media(max-width:900px){.special-project-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.special-project-gallery{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px}}
@media(max-width:420px){.special-project-gallery{grid-template-columns:1fr}}


/* Version 17.4 UAT: catalog readability and portrait-friendly scale gallery */
.category-back{font-size:.86rem}
.product-entry p{font-size:1rem;line-height:1.65}
.product-details li{padding:7px 10px;font-size:.84rem;line-height:1.3}
.scale-gallery{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:start;gap:8px;padding:8px;background:transparent}
.scale-gallery img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;background:#d7d7d4}
@media(max-width:620px){.scale-gallery{grid-template-columns:1fr;padding:4px}}


/* Click-to-enlarge product imagery */
.zoomable-product-image{cursor:zoom-in}
.zoomable-product-image:focus-visible{outline:3px solid var(--copper);outline-offset:-3px}
body.lightbox-open{overflow:hidden}
.image-lightbox{position:fixed;z-index:9999;inset:0;display:none;align-items:center;justify-content:center;padding:clamp(18px,4vw,54px);background:rgba(5,15,12,.94);backdrop-filter:blur(4px)}
.image-lightbox.open{display:flex}
.lightbox-figure{display:flex;max-width:min(92vw,1400px);max-height:90vh;margin:0;flex-direction:column;align-items:center;gap:10px}
.lightbox-image{display:block;max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;box-shadow:0 12px 50px rgba(0,0,0,.45)}
.lightbox-caption{max-width:min(90vw,900px);color:var(--cream);font-size:.9rem;line-height:1.4;text-align:center}
.lightbox-close,.lightbox-nav{position:fixed;border:1px solid rgba(255,255,255,.4);background:rgba(7,31,23,.86);color:#fff;cursor:pointer;line-height:1}
.lightbox-close{top:18px;right:18px;width:48px;height:48px;border-radius:50%;font-size:2rem}
.lightbox-nav{top:50%;width:52px;height:64px;transform:translateY(-50%);font-size:3rem}
.lightbox-prev{left:16px}.lightbox-next{right:16px}
.lightbox-close:hover,.lightbox-nav:hover,.lightbox-close:focus-visible,.lightbox-nav:focus-visible{background:var(--copper);outline:none}
@media(max-width:620px){.image-lightbox{padding:68px 12px 22px}.lightbox-nav{top:auto;bottom:18px;width:52px;height:52px;transform:none}.lightbox-prev{left:calc(50% - 62px)}.lightbox-next{right:calc(50% - 62px)}.lightbox-image{max-height:72vh}.lightbox-caption{padding-bottom:54px}}

.product-entry-grid.two-entry{grid-template-columns:repeat(2,minmax(0,1fr));max-width:960px;justify-content:center}
@media(max-width:620px){.product-entry-grid.two-entry{grid-template-columns:1fr}}
