*{box-sizing:border-box}
body{--accent:#173e32;--accent-soft:#dcebe4;--accent-edge:#2d735a;margin:0;background:linear-gradient(145deg,#fffaf5 15%,var(--accent-soft) 70%,#f6ebd4);color:#241f19;font:16px/1.6 Arial,sans-serif;min-height:100vh}
body.cosmetics-theme{--accent:#9f4e60;--accent-soft:#f8dfe4;--accent-edge:#c86f83}
a{color:#173e32}
.announcement{background:#173e32;color:#fff5df;text-align:center;padding:9px 16px;font-size:12px;letter-spacing:1.6px}
header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 6%;background:#fffdf9;border-bottom:3px solid #c6a15b}
header a{text-decoration:none}
.brand{display:flex;align-items:center;gap:12px;color:#173e32}
.logo-mark{position:relative;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:linear-gradient(145deg,#d9b665,#9f6f24);color:#fff;font:bold 18px Georgia,serif;box-shadow:0 7px 20px #9f6f2433}
.logo-mark:after{content:"";position:absolute;inset:5px;border:1px solid #ffffffa6;border-radius:50%}
.logo-copy{display:flex;flex-direction:column;line-height:1}
.logo-copy strong{font:24px Georgia,serif;letter-spacing:3px;color:#201d18}
.logo-copy small{font:9px Arial,sans-serif;letter-spacing:2.6px;text-transform:uppercase;color:#8a632b;margin-top:7px}
header>a:last-child{border:1px solid #c6a15b;padding:9px 15px;border-radius:30px;font-size:14px}
main{max-width:1150px;margin:auto;padding:28px 24px}
.crumb{font-size:14px;margin-bottom:25px;color:#665951;overflow-wrap:anywhere}
.product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
.product-layout>section:first-child{min-width:0}
.main-photo{display:block;width:100%;background:transparent;border:0;border-radius:22px;overflow:hidden;padding:0;cursor:zoom-in;box-shadow:0 16px 40px #563b2515}
.main-photo img{display:block;width:100%;height:auto}
.hint{font-size:14px;color:#655e55}
.thumbnails{display:flex;flex-wrap:wrap;gap:10px}
.thumb{padding:3px;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer;overflow:hidden}
.thumb[aria-pressed=true]{border-color:#9a742e;background:#fff4d5;box-shadow:0 3px 12px #9a742e22}
.thumb img{display:block;object-fit:cover;border-radius:5px}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #173e32;outline-offset:3px}
.details{background:linear-gradient(155deg,#fffdf9 50%,var(--accent-soft));padding:32px;border:1px solid #ebd8c6;border-top:5px solid var(--accent-edge);border-radius:22px;box-shadow:0 16px 45px #593d3020;min-width:0}
.category{display:inline-block;text-transform:uppercase;letter-spacing:1.6px;font-size:12px;font-weight:bold;color:#79551d;background:#f6e7c3;padding:7px 12px;border-radius:30px;margin:0}
h1{font:38px/1.2 Georgia,serif;margin:20px 0;color:#173e32;overflow-wrap:break-word}
.price{font-size:30px;font-weight:bold;color:#173e32;padding-bottom:20px;border-bottom:1px solid #e2c9b7;margin:20px 0}
.price small{font-size:14px;font-weight:normal;color:#746255}
.available-colour{display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;border:1px solid #d0b583;padding:9px 14px;border-radius:30px;background:#fffbef;margin:24px 0}
.swatch{display:inline-block;flex:0 0 18px;height:18px;border-radius:50%;background:linear-gradient(135deg,#ead28c,#aa7a27);border:1px solid #967023}
.colour-picker{margin:24px 0}.colour-picker>strong{display:block;margin-bottom:3px}.colour-picker>p{margin:0 0 12px;color:#745e54;font-size:14px}.colour-options{display:flex;flex-wrap:wrap;gap:9px}.colour-option{display:flex;align-items:center;gap:7px;border:2px solid #dbcbbb;background:#fff;padding:9px 13px;border-radius:30px;cursor:pointer;font:600 14px Arial,sans-serif;color:#352d29}.colour-option[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.colour-dot{width:18px;height:18px;border-radius:50%;background:var(--colour);border:1px solid #0003}
.variant-picker{margin:24px 0}.variant-picker>strong{display:block;margin-bottom:3px}.variant-picker>p{margin:0 0 12px;color:#745e54;font-size:14px}.variant-options{display:flex;flex-wrap:wrap;gap:10px}.variant-option{min-width:52px;border:2px solid #dbcbbb;background:#fff;padding:10px 16px;border-radius:10px;cursor:pointer;font:700 16px Arial,sans-serif;color:#352d29}.variant-option[aria-pressed=true]{color:#fff;background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.order{display:flex;gap:10px;align-items:center;justify-content:center;background:linear-gradient(120deg,#18a957,#25d366);color:#fff;text-decoration:none;padding:16px 18px;border-radius:12px;font-weight:bold;margin-top:28px;box-shadow:0 10px 24px #25d36645}
.order:hover{background:linear-gradient(120deg,#128c4a,#20c45c);filter:none}
.order svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
footer{text-align:center;padding:32px 20px;font-size:14px;background:#173e32;color:#f6e7c3;margin-top:30px}footer a{color:white}
dialog{border:0;border-radius:14px;padding:14px;max-width:95vw;max-height:94dvh;background:#fffaf5}dialog::backdrop{background:#000b}
#close-photo{display:block;margin:0 0 10px auto;font-size:16px;padding:10px 16px;background:#173e32;color:white;border:0;border-radius:8px;cursor:pointer}
#zoom-photo{display:block;max-width:85vw;max-height:75dvh;object-fit:contain}
@media(max-width:700px){header{padding:14px 16px;gap:10px}header>a:last-child{font-size:13px;padding:7px 10px}.logo-mark{width:46px;height:46px;font-size:16px}.logo-copy strong{font-size:20px}.logo-copy small{font-size:8px;letter-spacing:1.6px}main{padding:20px 16px}.product-layout{grid-template-columns:minmax(0,1fr);gap:24px}h1{font-size:30px}.crumb{margin-bottom:20px}.details{padding:24px 20px}.main-photo{border-radius:18px}.price{font-size:28px}}

/* Keep the full product and gallery controls visible on small screens. */
.product-layout .main-photo #main-photo{width:100%;height:min(64vh,620px);object-fit:contain;object-position:center}
.gallery-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.gallery-navigation button{min-height:44px;padding:10px 16px;border:1px solid #b9cbbf;border-radius:24px;background:#edf4ef;color:#173e32;font:600 14px Arial,sans-serif;cursor:pointer}
.gallery-navigation span{font-size:14px;color:#385346;text-align:center}
.thumbnails{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 12px;max-width:100%;scrollbar-width:thin}
.thumb{flex:0 0 auto}.thumb img{width:64px;height:76px;object-fit:contain}
@media(max-width:700px){.jewellery-theme header,.cosmetics-theme header{flex-wrap:wrap}.brand{min-width:0}.product-layout .main-photo #main-photo{height:min(55vh,450px)}.gallery-navigation{margin-top:8px}}

/* Native scrolling keeps each image attached to the finger on touch devices. */
.swipe-gallery{display:flex;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:8px}
.swipe-gallery::-webkit-scrollbar{display:none}
.swipe-photo{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;border:0;padding:0;margin:0;background:transparent;cursor:zoom-in}
.swipe-photo img{display:block;width:100%;height:min(64vh,620px);object-fit:contain;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.swipe-hint{text-align:center;margin:10px 0 4px}
@media(max-width:700px){.swipe-photo img{height:min(55vh,450px)}}

/* Consistent full-width product crop and compact, single-row photo previews. */
.product-layout .swipe-photo{aspect-ratio:4/5;overflow:hidden}
.product-layout .swipe-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.product-layout .main-photo{aspect-ratio:4/5;overflow:hidden}
.product-layout .main-photo #main-photo{width:100%;height:100%;object-fit:cover;object-position:center}
.product-layout .thumbnails{display:flex;flex-flow:row nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;padding:10px 1px 6px;scrollbar-width:none}
.product-layout .thumbnails::-webkit-scrollbar{display:none}
.product-layout .thumbnails .thumb{flex:0 0 50px;width:50px;height:60px;padding:2px;border-radius:7px;overflow:hidden}
.product-layout .thumbnails .thumb img{width:100%;height:100%;object-fit:cover;border-radius:3px}
.product-layout .swipe-hint{font-size:12px;line-height:1.4;margin:9px 0 0;color:#66766c}
