/* =====================================================
   THE MEMORY COLLECTIVE
   Luxury Website Styles
====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root{

--cream:#fbf8f3;
--ivory:#f7f3ed;
--white:#ffffff;

--navy:#18324a;
--gold:#c4a061;
--gold-dark:#af8d53;

--text:#4d4d4d;

--shadow:0 20px 45px rgba(0,0,0,.08);

--radius:18px;

--transition:.35s ease;

/* Change `none` to `inline-block` when the Gallery is ready to show. */
--gallery-navigation-display:inline-block;

}

/* Hide the Gallery tab while its work is being prepared. */
.main-nav a[href$="gallery.html"]{
display:var(--gallery-navigation-display);
}

*{

margin:0;

padding:0;

box-sizing:border-box;

}

html{

scroll-behavior:smooth;

}

body{

background:var(--cream);

font-family:'Montserrat',sans-serif;

font-size:17px;

line-height:1.8;

color:var(--text);

overflow-x:hidden;

}

img{

display:block;

max-width:100%;

}

a{

text-decoration:none;

transition:var(--transition);

}

.container{

width:92%;

max-width:1400px;

margin:0 auto;

}

.narrow{

max-width:850px;

margin:auto;

text-align:center;

}

.welcome-story{

background:#fff;

}

.welcome-grid{

display:grid;

grid-template-columns:1fr .75fr;

gap:60px;

align-items:center;

}

.welcome-image{

overflow:hidden;

box-shadow:var(--shadow);

background:#fff;

display:flex;

align-items:center;

justify-content:center;

aspect-ratio:1 / 1;

width:100%;

max-width:520px;

justify-self:center;

}

.welcome-image img{

width:100%;

height:100%;

object-fit:contain;

object-position:center;

}

h1,
h2,
h3,
h4{

font-family:'Cormorant Garamond',serif;

font-weight:600;

color:var(--navy);

line-height:1.1;

}

h1{

font-size:72px;

margin-bottom:25px;

}

h2{

font-size:52px;

margin-bottom:25px;

}

h3{

font-size:32px;

margin-bottom:15px;

}

p{

margin-bottom:20px;

}

section{

padding:90px 0;

}
/* ================= HEADER ================= */

.site-header{
    position:sticky;
    top:0;
    width:100%;
    background:#fff;
    z-index:1000;
}

/* Banner */

.header-brand{
    width:100%;
    overflow:hidden;
    line-height:0;
    max-height:700px;
}

.header-logo{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
    object-position:center;
}

/* Navigation */

.main-nav{
    position:relative;
    top:0;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:42px;

    padding:18px 25px;

    background:#fff;

    border-top:1px solid #ece6da;
    border-bottom:1px solid #ece6da;

    z-index:999;

    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.main-nav a{
    font-size:14px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--navy);
    text-decoration:none;
    position:relative;
    transition:.25s;
}

.main-nav a:hover{
    color:var(--gold);
}

.main-nav a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:100%;
    height:2px;
    background:var(--gold);
}

.basket-link{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:22px;
}

#basket-count{
    width:22px;
    height:22px;

    border-radius:50%;
    background:var(--gold);
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:12px;
    font-weight:700;
}
/* ================= HERO ================= */

.hero{

background:linear-gradient(180deg,#ffffff 0%,#fbf8f3 100%);

padding:120px 0;

}

.hero-grid{

display:grid;

grid-template-columns:1.1fr .9fr;

gap:70px;

align-items:center;

}

.eyebrow{

display:inline-block;

font-size:14px;

letter-spacing:4px;

text-transform:uppercase;

color:var(--gold);

margin-bottom:20px;

font-weight:600;

}

.hero-intro{

font-size:20px;

max-width:620px;

margin-bottom:35px;

color:#666;

}

.hero-image{

display:flex;

justify-content:center;

align-items:center;

}

.hero-placeholder{

width:100%;

height:600px;

border-radius:25px;

background:white;

display:flex;

align-items:center;

justify-content:center;

border:2px dashed #d8d8d8;

box-shadow:var(--shadow);

font-size:18px;

color:#999;

overflow:hidden;

}

/* ================= BUTTONS ================= */

.hero-buttons{

display:flex;

gap:18px;

margin-top:40px;

flex-wrap:wrap;

}

.button{

display:inline-block;

background:var(--gold);

color:white;

padding:16px 34px;

border-radius:40px;

font-weight:600;

transition:.3s;

}

.fixed-option{

width:100%;

padding:16px 18px;

border:1px solid #ddd;

border-radius:12px;

margin-bottom:18px;

background:#f7f4ed;

color:var(--navy);

font-weight:600;

}

.photo-contact-note{

padding:14px 16px;

border-left:3px solid var(--gold);

background:#f7f4ed;

border-radius:10px;

color:var(--navy);

font-size:15px;

}

.paid-addon{

margin-top:8px;

}

.paid-addon-details[hidden]{

display:none;

}

.made-for-you-notice{

padding:18px;

border:1px solid #e5ddcf;

border-radius:14px;

background:#fbf7ef;

margin:24px 0;

}

.made-for-you-notice h3{

margin-top:0;

}

.made-for-you-notice p{

font-size:15px;

line-height:1.7;

color:#555;

}

.basket-details{

font-size:14px;

line-height:1.6;

color:#666;

margin-top:8px;

}

.design-builder-section{

padding-top:40px;

}

.design-builder-layout{

display:block;

max-width:1100px;

margin:0 auto;

}

.design-builder-layout .product-details{

position:relative;

top:0;

margin-bottom:28px;

}

.design-frame-panel{

position:relative;

top:0;

}

.design-options-panel{

position:relative;

top:0;

}

.design-note{

font-size:15px;

color:#666;

line-height:1.6;

}

.checkbox-option,
.design-option{

display:flex;

align-items:flex-start;

gap:12px;

padding:14px 16px;

border:1px solid #ddd;

border-radius:12px;

background:#fff;

margin-bottom:12px;

cursor:pointer;

transition:.25s;

}

.checkbox-option:hover,
.design-option:hover{

border-color:var(--gold);

box-shadow:0 8px 22px rgba(0,0,0,.07);

}

.checkbox-option input,
.design-option input{

width:auto;

margin-top:5px;

}

.design-options-grid{

display:grid;

grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));

gap:14px;

margin:18px 0 24px;

}

.design-option{

margin-bottom:0;

min-height:auto;

}

.design-option span{

display:flex;

flex-direction:column;

gap:6px;

width:100%;

}

.design-option-title{

color:var(--navy);

font-size:16px;

}

.design-option small{

color:#777;

}

.ribbon-individual-note{

    padding-top:4px;
    font-style:italic;
    line-height:1.45;

}

.fill-item-reference{

    margin:34px 0 26px;
    padding:24px;
    border:1px solid #eadfce;
    border-radius:16px;
    background:#fbf8f4;

}

.fill-item-reference h3{

    margin:0 0 8px;

}

.fill-item-reference > p{

    margin:0 0 18px;
    color:#666;

}

.fill-item-reference-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:14px;

}

.fill-item-reference figure{

    margin:0;
    overflow:hidden;
    border:1px solid #eadfce;
    border-radius:10px;
    background:#fff;

}

.fill-item-reference img{

    display:block;
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;

}

.fill-item-reference figcaption{

    padding:9px;
    color:var(--navy);
    font-size:.82rem;
    font-weight:600;
    line-height:1.35;

}

.design-option select{

margin:6px 0 0;

padding:10px 12px;

font-size:14px;

}

.design-option:has(input:checked),
.checkbox-option:has(input:checked){

border-color:var(--gold);

background:#fbf7ef;

}

@media(max-width:768px){

.design-builder-layout{

grid-template-columns:1fr;

}

.design-frame-panel{

position:relative;

top:0;

}

.design-options-grid{

grid-template-columns:1fr;

}

}

.button:hover{

background:var(--gold-dark);

transform:translateY(-3px) scale(.98);

}

.button-outline{

display:inline-block;

padding:16px 34px;

border:2px solid var(--gold);

border-radius:40px;

color:var(--navy);

font-weight:600;

}

.button-outline:hover{

background:var(--gold);

color:white;

}

/* ================= SECTION HEADINGS ================= */

.section-heading{

text-align:center;

margin-bottom:60px;

}

.section-heading p{

letter-spacing:4px;

text-transform:uppercase;

font-size:13px;

color:var(--gold);

margin-bottom:10px;

font-weight:600;

}
/* ================= COLLECTIONS ================= */

.collection-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

}

.collection-card{

background:white;

padding:28px;

border-radius:20px;

box-shadow:var(--shadow);

transition:.35s;

text-align:center;

}

.collection-card:hover{

transform:translateY(-10px);

}

.collection-image{

height:260px;

background:#f2f2f2;

border-radius:15px;

display:flex;

align-items:center;

justify-content:center;

margin-bottom:25px;

overflow:hidden;

}

.collection-image img{

width:100%;

height:100%;

object-fit:cover;

}

.collection-card h3{

margin-bottom:15px;

}

.collection-card p{

font-size:15px;

margin-bottom:22px;

}

.collection-card > a:not(.button){

font-weight:600;

color:var(--gold);

}

.collection-card .button{
 color:#fff;
}

.collection-card a:not(.button):hover{

padding-left:8px;

}

/* ================= FEATURES ================= */

.features{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:35px;

margin-top:50px;

}

.feature{

background:white;

padding:40px;

border-radius:18px;

box-shadow:var(--shadow);

text-align:center;

}
/* ================= PROCESS ================= */

.process{

background:#fff;

}

.process-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

margin-top:50px;

}

.step{

background:var(--cream);

padding:45px 35px;

border-radius:20px;

text-align:center;

transition:.35s;

}

.step:hover{

transform:translateY(-10px);

box-shadow:var(--shadow);

}

.number{

width:70px;

height:70px;

margin:auto;

margin-bottom:25px;

border-radius:50%;

background:var(--gold);

color:#fff;

display:flex;

align-items:center;

justify-content:center;

font-size:22px;

font-weight:700;

font-family:'Cormorant Garamond',serif;

}


/* ================= TESTIMONIAL ================= */

.testimonial{

background:linear-gradient(180deg,#fbf8f3,#ffffff);

text-align:center;

}

.quote{

max-width:900px;

margin:auto;

font-family:'Cormorant Garamond',serif;

font-size:42px;

line-height:1.4;

color:var(--navy);

font-style:italic;

}


/* ================= CTA ================= */

.cta{

background:linear-gradient(135deg,var(--navy),#284d73);

color:white;

text-align:center;

padding:100px 0;

}

.cta h2{

color:white;

font-size:58px;

margin-bottom:25px;

}

.cta p{

max-width:760px;

margin:auto;

margin-bottom:35px;

font-size:20px;

opacity:.95;

}
/* ================= FOOTER ================= */

footer{

background:#16293e;

color:white;

padding:80px 0 30px;

}

.footer-grid{

display:grid;

grid-template-columns:2fr 1fr 1fr 1.5fr;

gap:60px;

}

.footer-logo{

width:150px;

margin-bottom:20px;

}

footer h3{

color:white;

font-size:24px;

margin-bottom:18px;

}

footer ul{

list-style:none;

padding:0;

}

footer li{

margin-bottom:10px;

}

footer a{

color:#ddd;

}

footer a:hover{

color:var(--gold);

}

.copyright{

margin-top:60px;

padding-top:25px;

border-top:1px solid rgba(255,255,255,.15);

text-align:center;

font-size:14px;

color:#bbb;

}


/* ================= RESPONSIVE ================= */

@media(max-width:1100px){

.hero-grid{

grid-template-columns:1fr;

text-align:center;

}

.welcome-grid{

grid-template-columns:1fr;

text-align:center;

}

.hero-intro{

margin:auto;

}

.collection-grid{

grid-template-columns:repeat(2,1fr);

}

.features{

grid-template-columns:1fr;

}

.process-grid{

grid-template-columns:repeat(2,1fr);

}

.footer-grid{

grid-template-columns:1fr;

text-align:center;

}

.footer-logo{

margin:auto auto 20px;

}

}

@media(max-width:768px){

header .container{

flex-direction:column;

gap:20px;

}

nav ul{

flex-wrap:wrap;

justify-content:center;

gap:18px;

}

.main-nav{

flex-wrap:wrap;

gap:18px;

}

h1{

font-size:48px;

}

h2{

font-size:40px;

}

.collection-grid{

grid-template-columns:1fr;

}

.process-grid{

grid-template-columns:1fr;

}

.hero{

padding:80px 0;

}

.hero-placeholder{

height:380px;

}

}
/* ===================================================
   PRODUCT PAGE
=================================================== */

.product-layout{

display:grid;

grid-template-columns:1.1fr .9fr;

gap:70px;

align-items:start;

margin-top:40px;

}

.main-product-image{

height:620px;

background:#f2f2f2;

border-radius:22px;

display:flex;

align-items:center;

justify-content:center;

font-size:22px;

color:#999;

box-shadow:var(--shadow);

margin-bottom:20px;

}

.thumbnail-row{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:18px;

}

.thumb{

height:110px;

background:#efefef;

border-radius:15px;

display:flex;

align-items:center;

justify-content:center;

cursor:pointer;

transition:.3s;

font-size:14px;

}

.thumb:hover{

transform:translateY(-6px);

box-shadow:var(--shadow);

}

.product-details{

background:white;

padding:45px;

border-radius:24px;

box-shadow:var(--shadow);

position:sticky;

top:120px;

}

.product-details h2{

margin-bottom:20px;

}

.product-details h3{

font-size:24px;

margin-top:30px;

margin-bottom:12px;

}

.product-details select,

.product-details input,

.product-details textarea{

width:100%;

padding:16px 18px;

border:1px solid #ddd;

border-radius:12px;

margin-bottom:18px;

font-family:inherit;

font-size:16px;

background:white;

transition:.3s;

}

.product-details select:focus,

.product-details input:focus,

.product-details textarea:focus{

outline:none;

border-color:var(--gold);

box-shadow:0 0 0 3px rgba(196,160,97,.15);

}

.price{

font-size:42px;

font-family:'Cormorant Garamond',serif;

color:var(--gold);

margin:25px 0;

font-weight:700;

}

.product-details button{

border:none;

cursor:pointer;

font-size:17px;

}

.product-details .hero-buttons{

margin-top:25px;

display:flex;

flex-wrap:wrap;

gap:15px;

}

.product-details .button,

.product-details .button-outline{

flex:1;

text-align:center;

}

@media(max-width:1000px){

.product-layout{

grid-template-columns:1fr;

}

.product-details{

position:relative;

top:0;

}

.thumbnail-row{

grid-template-columns:repeat(2,1fr);

}

}
/* ==========================
   BASKET
========================== */

.basket-layout{

display:grid;

grid-template-columns:2fr 1fr;

gap:50px;

align-items:start;

}

.basket-items{

display:flex;

flex-direction:column;

gap:25px;

}

.basket-item{

display:flex;

align-items:center;

gap:25px;

background:#fff;

padding:25px;

border-radius:20px;

box-shadow:var(--shadow);

}

.basket-image{

width:130px;

height:130px;

background:#efefef;

border-radius:15px;

display:flex;

align-items:center;

justify-content:center;

color:#999;

font-size:14px;

flex-shrink:0;

}

.basket-info{

flex:1;

}

.basket-info h3{

margin-bottom:12px;

}

.basket-price{

font-size:30px;

font-family:'Cormorant Garamond',serif;

color:var(--gold);

font-weight:700;

}

.basket-summary{

background:#fff;

padding:35px;

border-radius:22px;

box-shadow:var(--shadow);

position:sticky;

top:120px;

}

.summary-row{

display:flex;

justify-content:space-between;

margin:18px 0;

}

.total{

font-size:24px;

padding-top:20px;

border-top:1px solid #ddd;

margin-top:20px;

}

.basket-summary .button,

.basket-summary .button-outline{

display:block;

width:100%;

text-align:center;

margin-top:20px;

}

@media(max-width:1000px){

.basket-layout{

grid-template-columns:1fr;

}

.basket-item{

flex-direction:column;

text-align:center;

}

.basket-summary{

position:relative;

top:0;

}

}
/* ==========================
   CHECKOUT
========================== */

.checkout-badge{

display:inline-block;

padding:8px 16px;

background:#f7f4ed;

border-radius:50px;

font-size:14px;

color:var(--gold);

margin-bottom:20px;

font-weight:600;

}

.product-details input,

.product-details textarea{

margin-bottom:16px;

}

.product-details h2{

margin-bottom:30px;

}

.product-details hr,

.basket-summary hr{

margin:25px 0;

border:none;

height:1px;

background:#e5e5e5;

}
/* ==================================
   GALLERY
================================== */

.gallery-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:35px;

margin-top:60px;

}

.gallery-card{

background:#fff;

border-radius:22px;

overflow:hidden;

box-shadow:var(--shadow);

transition:.35s;

}

.gallery-card:hover{

transform:translateY(-10px);

}

.gallery-image{

height:320px;

background:#efefef;

display:flex;

align-items:center;

justify-content:center;

font-size:18px;

color:#999;

}

.gallery-image img{
width:100%;
height:100%;
object-fit:cover;
}

.gallery-card h3{

padding:30px 30px 10px;

font-size:30px;

}

.gallery-card p{

padding:0 30px 35px;

}
/* ==================================
   FAQ
================================== */

.faq-item{

background:#fff;

padding:35px;

margin-bottom:25px;

border-radius:20px;

box-shadow:var(--shadow);

}

.faq-item h3{

margin-bottom:15px;

font-size:28px;

}

.faq-item p{

margin:0;

line-height:1.8;

}
/* ==================================
   CONTACT
================================== */

.product-details button{

width:100%;

margin-top:10px;

}

.product-details p{

margin-bottom:18px;

}

.product-details h3{

margin-top:25px;

}
/* ===== SMART STICKY HEADER ===== */

.header-brand{
    overflow:hidden;
    transition:max-height .45s ease, opacity .35s ease;
}

.header-logo{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
    object-position:center;
    transition:none;
}

/* Banner slides completely away */
.site-header.scrolled .header-brand{
    max-height:0;
    opacity:0;
    pointer-events:none;
}

/* Navigation stays visible */
.main-nav{
    transition:
        padding .35s ease,
        box-shadow .35s ease;
}

.site-header.scrolled .main-nav{
    padding:12px 25px;
    box-shadow:0 8px 25px rgba(0,0,0,.10);
}

/* ===== CONSISTENT PAGE HERO ===== */

.hero{
    padding:90px 0;
    text-align:center;
}

.hero-grid{
    display:block;
    max-width:1100px;
}

.hero-text,
.hero-grid > div:first-child,
.hero > .container{
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
}

.hero-intro{
    max-width:760px;
    margin-left:auto;
    margin-right:auto;
}

.hero-buttons{
    justify-content:center;
}

.hero-image{
    display:none;
}

/* ===== DESIGN YOURSELF FIXES ===== */

.design-builder-layout{
    display:block;
    max-width:1100px;
    margin:0 auto;
}

.design-builder-layout .product-details{
    position:relative;
    top:0;
    margin-bottom:28px;
}

.design-options-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:14px;
}

.design-options-panel .design-option,
.design-frame-panel .checkbox-option{
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:100%;
    padding:14px 16px;
}

.design-options-panel .design-option input[type="checkbox"],
.design-frame-panel .checkbox-option input[type="checkbox"]{
    width:18px;
    min-width:18px;
    height:18px;
    margin:3px 0 0;
    flex:0 0 18px;
}

.design-options-panel .design-option span,
.design-frame-panel .checkbox-option span{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:0;
    width:auto;
    flex:1;
}

.quote-price{
    font-size:34px;
    line-height:1.1;
    overflow-wrap:anywhere;
}

/* Keep checkbox text inside acknowledgement boxes on every page */
.checkbox-option{
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:100%;
}

.checkbox-option input[type="checkbox"]{
    width:18px;
    min-width:18px;
    height:18px;
    margin:3px 0 0;
    flex:0 0 18px;
}

.checkbox-option span{
    min-width:0;
    width:auto;
    flex:1;
}

/* Checkout */
.checkout-note{
    font-size:.9rem;
    color:#666;
    margin-bottom:14px;
}

#continue-to-payment-btn{
    width:100%;
}


/* Product image fitting fix - keeps existing boxes/layout */
.main-product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    border-radius:22px;
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:15px;
}

/* Birthday collection centred */
.birthday-grid{justify-content:center;}
.birthday-grid .collection-card{max-width:320px;}


/* final collection layout fixes */
.collection-grid{grid-template-columns:repeat(4,1fr);}
.collection-title{text-align:center;}
.birthday-grid{justify-content:center;}
@media(max-width:900px){.collection-grid{grid-template-columns:repeat(2,1fr);}}


/* Shop collection slider-ready layout */
.collection-grid.slide {
    display:flex;
    overflow:hidden;
    scroll-behavior:smooth;
}

.collection-grid.slide .collection-card {
    flex:0 0 calc(25% - 18px);
}

@media(max-width:900px){
.collection-grid.slide .collection-card { flex-basis:calc(50% - 12px); }
}

/* ===================================================
   COLLECTION PAGE SYSTEM
   One shared visual language for every product page.
=================================================== */
.collection-page .hero{
    padding:76px 0 64px;
    background:linear-gradient(135deg, var(--ivory), #fff 70%);
    border-bottom:1px solid #ece6da;
}

.collection-page .hero .eyebrow,
.collection-page .section-heading > p{
    color:var(--gold-dark);
    font-weight:600;
    letter-spacing:.16em;
    font-size:.76rem;
}

.collection-page .hero h1{ max-width:780px; margin-left:auto; margin-right:auto; }
.collection-page .product-layout{ margin-top:0; gap:54px; }
.collection-page .product-gallery{ min-width:0; }
.collection-page .main-product-image{
    height:auto;
    min-height:500px;
    aspect-ratio:1 / 1;
    border:1px solid #eee7dc;
    overflow:hidden;
    background:#fff;
}
.collection-page .thumbnail-row{ gap:12px; }
.collection-page .thumb{ height:92px; padding:0; border:2px solid transparent; overflow:hidden; font:inherit; }
.collection-page .thumb.is-active,
.collection-page .thumb:focus-within{ border-color:var(--gold); }
.collection-page .product-details{
    padding:38px;
    border:1px solid #eee7dc;
    box-shadow:0 16px 36px rgba(24,50,74,.08);
}
.collection-page .product-details h2{ font-size:2.65rem; }
.collection-page .product-details h3{ font-size:1.55rem; margin-top:25px; }
.collection-page .fixed-option{
    padding:13px 16px;
    margin-bottom:18px;
    background:var(--ivory);
    border-radius:10px;
    font-weight:500;
}
.collection-page .made-for-you-notice{
    margin-top:26px;
    padding:22px;
    background:#fbf8f3;
    border-left:3px solid var(--gold);
    border-radius:0 12px 12px 0;
}
.collection-page .made-for-you-notice h3{ margin-top:0; }
.collection-page .made-for-you-notice p{ font-size:.92rem; line-height:1.65; }
.collection-page .price{ margin:8px 0 18px; }

/* Keep the product imagery beside the longer personalisation form as it scrolls. */
@media(min-width:1001px){
    .collection-page .product-gallery{
        position:sticky;
        top:120px;
        align-self:start;
    }
}

@media(max-width:700px){
    .collection-page .hero{ padding:56px 0 44px; }
    .collection-page .product-details{ padding:26px 20px; }
    .collection-page .main-product-image{ min-height:320px; }
    .collection-page .thumbnail-row{ grid-template-columns:repeat(3,1fr); }
.collection-page .thumb{ height:74px; }
}

/* Added-to-basket choice, used across product and collection pages. */
.tmc-basket-choice[hidden]{display:none}
.tmc-basket-choice{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:22px;background:rgba(23,54,83,.58)}
.tmc-basket-choice__panel{position:relative;width:min(100%,460px);box-sizing:border-box;padding:36px;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28);text-align:center}
.tmc-basket-choice__panel h2{font-size:2.8rem;line-height:1;margin:8px 0 14px}
.tmc-basket-choice__close{position:absolute;top:13px;right:15px;border:0;background:transparent;color:var(--navy);font-size:30px;line-height:1;cursor:pointer}
.tmc-basket-choice__actions{display:grid;gap:12px;margin-top:24px}.tmc-basket-choice__actions .button,.tmc-basket-choice__actions .button-outline{width:100%;box-sizing:border-box;text-align:center;margin:0}
@media(max-width:700px){.tmc-basket-choice{padding:16px}.tmc-basket-choice__panel{padding:30px 20px}.tmc-basket-choice__panel h2{font-size:2.3rem}}

/* Home collection headings sit over their own two-card groups. */
.home-page .collection-pair-headings{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:30px;
    margin:0 0 30px;
}
.home-page .collection-pair-headings h2{
    margin:0;
    font-size:2.25rem;
}
.home-page .collection-pair-headings h2:first-child{ text-align:center; }
.home-page .collection-pair-headings h2:last-child{ text-align:center; }
.home-page .collection-grid + .collection-pair-headings{
    margin-top:78px;
}
.home-page .collection-grid + .collection-title{
    margin-top:78px;
    margin-bottom:30px;
}
.home-page .collections .collection-image{
    height:auto;
    aspect-ratio:4 / 5;
}
.home-page .birthday-grid{
    grid-template-columns:repeat(2, minmax(0, 320px));
    justify-content:center;
}
.home-page .collection-card{
    display:flex;
    flex-direction:column;
}
.home-page .collection-card h3{
    min-height:2.2em;
    display:flex;
    align-items:center;
    justify-content:center;
}
.home-page .collection-card > p:not(.price){
    min-height:5.4em;
}
.home-page .collection-card .price{
    margin-top:auto;
    margin-bottom:22px;
}
.home-page .collection-card .button{
    margin-top:0;
}

/* Collection browsing pages */
.collection-overview .hero{ padding-bottom:52px; }
.collection-overview-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 360px));
    justify-content:center;
    gap:32px;
}
.collection-overview-grid .collection-card{
    display:flex;
    flex-direction:column;
}
.collection-overview-grid .collection-image{
    height:auto;
    aspect-ratio:4 / 5;
}
.collection-overview-grid .collection-card .button{ margin-top:auto; }

/* Shop collection slider */
.collection-carousel{ position:relative; }
.collection-carousel .collection-grid.slide{
    gap:24px;
    padding:2px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}
.collection-carousel .collection-grid.slide::-webkit-scrollbar{ display:none; }
.collection-carousel .collection-grid.slide .collection-card{ scroll-snap-align:start; }
.carousel-control{
    position:absolute;
    z-index:2;
    top:50%;
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background:var(--navy);
    color:#fff;
    cursor:pointer;
    font-size:25px;
    line-height:1;
    box-shadow:var(--shadow);
    transform:translateY(-50%);
}
.carousel-control:hover{ background:var(--gold-dark); }
.carousel-control-prev{ left:-22px; }
.carousel-control-next{ right:-22px; }

.legal-page{ padding:90px 0; }
.legal-page h2{ font-size:2.1rem; margin-top:42px; }
.legal-page a{ color:var(--gold-dark); font-weight:600; text-decoration:underline; }
.legal-footer-links{ font-size:.82rem; margin-top:12px; }
.legal-footer-links span{ margin:0 8px; color:var(--gold); }
.checkout-terms{ margin:18px 0 24px; font-size:.87rem; line-height:1.5; }
.checkout-terms a{ color:var(--gold-dark); text-decoration:underline; }
.stock-notice{ margin-top:18px; padding:14px 16px; background:#fff4f1; border-left:3px solid #b75540; border-radius:8px; color:#7d3023; font-weight:600; }
.is-out-of-stock{ opacity:.65; cursor:not-allowed !important; }

@media(max-width:900px){
    .home-page .collection-pair-headings{ gap:18px; }
    .home-page .collection-pair-headings h2{ font-size:1.8rem; }
    .collection-grid.slide .collection-card{ flex-basis:calc(50% - 12px); }
}
@media(max-width:600px){
    .home-page .collection-pair-headings{ grid-template-columns:1fr; margin-bottom:20px; }
    .home-page .collection-pair-headings h2,
    .home-page .collection-pair-headings h2:first-child,
    .home-page .collection-pair-headings h2:last-child{ text-align:center; }
    /* Keep each collection as a title followed by its two products on phones. */
    .home-page .birthday-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-page .collection-grid + .collection-pair-headings,
    .home-page .collection-grid + .collection-title{ margin-top:56px; }
    .home-page .collection-card h3,
    .home-page .collection-card > p:not(.price){ min-height:0; }
    .collection-overview-grid{ grid-template-columns:1fr; }
    .collection-grid.slide .collection-card{ flex-basis:100%; }
    .carousel-control-prev{ left:8px; }
    .carousel-control-next{ right:8px; }
}

/* Owner Dashboard additions: uploaded image previews and maintenance controls. */
.record-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:14px;margin:12px 0 28px}
.site-image{margin:0;border:1px solid #eee5dc;border-radius:12px;overflow:hidden;background:#fff}
.site-image img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.site-image figcaption{padding:10px}.site-image figcaption small{display:block;color:#68737c;font-size:.7rem;overflow-wrap:anywhere;margin-top:4px}
.asset-preview{width:92px;height:92px;object-fit:cover;border-radius:10px;border:1px solid #eee5dc}
.asset-record{align-items:flex-start}.asset-edit{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:12px;border-top:1px solid #eee5dc}
.asset-edit label{font-size:.8rem;font-weight:700}.asset-edit input,.asset-edit select{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px;border:1px solid #ddd3c6;border-radius:8px}
.maintenance-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-radius:14px;margin:0 0 22px}.maintenance-switch.is-on{background:#fff5e9;border:1px solid #e1bd84}.maintenance-switch.is-off{background:#edf7ef;border:1px solid #b6d7bd}
@media(max-width:820px){.record{align-items:flex-start;flex-wrap:wrap}.record-actions{justify-content:flex-start}.asset-edit{grid-template-columns:1fr}}
@media(max-width:480px){.maintenance-switch{flex-direction:column;align-items:flex-start}.tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.tabs button{white-space:nowrap}.asset-preview{width:100%;height:auto;aspect-ratio:1}}

/* Public-site mobile refinement: preserve a usable, uncluttered layout on phones. */
@media(max-width:700px){
    body{font-size:16px;line-height:1.65}
    .site-header{position:relative}
    .header-brand{max-height:none}
    .main-nav{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;gap:20px;padding:13px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .main-nav::-webkit-scrollbar{display:none}.main-nav a{flex:0 0 auto;font-size:12px;letter-spacing:1.35px}
    .container{width:90%}section{padding:58px 0}h1{font-size:clamp(2.45rem,12vw,3.5rem);margin-bottom:16px}h2{font-size:clamp(2.1rem,10vw,2.8rem);margin-bottom:18px}h3{font-size:1.75rem}
    .hero{padding:60px 0}.hero-placeholder{height:auto;min-height:280px}.hero-buttons{display:grid;gap:12px}.hero-buttons .button,.hero-buttons .button-outline{width:100%;text-align:center}
    .product-layout,.checkout-layout,.welcome-grid{grid-template-columns:1fr!important;gap:28px}.product-details{padding:24px 18px}.collection-card{padding:18px}.collection-card .button{width:100%;text-align:center}
    .footer-grid{gap:28px}.footer-grid,.footer{text-align:center}.footer-logo{margin-left:auto;margin-right:auto}
    input,select,textarea{font-size:16px!important}.carousel-control{width:40px;height:40px}.collection-carousel .collection-grid.slide{padding:2px 0}
}

/* Phone-only finishing pass. Keeps desktop proportions untouched. */
.mobile-collection-heading{display:none}
@media(max-width:700px){
    html,body{max-width:100%;overflow-x:hidden}
    .site-header{box-shadow:0 4px 14px rgba(23,54,83,.08)}
    .header-brand{max-height:150px;background:#fff}
    .header-logo{max-height:150px;object-fit:contain}
    .main-nav{gap:17px;padding:12px 15px;scroll-padding:15px}
    .main-nav a{font-size:11px;letter-spacing:1.1px}
    .basket-link{font-size:18px}
    section{padding:48px 0}
    .hero{padding:48px 0 42px}
    .hero-intro{font-size:1rem}
    .collection-grid{gap:20px}
    /* Mobile order: collection title, its two products, then the next title. */
    .home-page .collection-pair-headings,.home-page .desktop-collection-title{display:none}
    .home-page .mobile-collection-heading{display:block;grid-column:1/-1;margin:12px 0 2px;color:var(--navy);font-family:'Cormorant Garamond',serif;font-size:2.15rem;font-weight:600;line-height:1.05;text-align:center}
    .collection-card{border-radius:18px;padding:16px}
    .collection-image{height:auto;aspect-ratio:1/1;min-height:0}
    .collection-card h3{font-size:2rem;line-height:1.02;margin:18px 0 10px}
    .collection-card p{margin-bottom:14px}
    .collection-card .button{padding:14px 16px}
    .product-layout{margin-top:20px}
    .main-product-image{height:auto!important;min-height:0!important;aspect-ratio:1/1;border-radius:18px}
    .thumbnail-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
    .collection-page .thumb{height:64px}
    .product-details{border-radius:18px}
    .product-details h2{font-size:2.35rem!important;line-height:1.02}
    .product-details .button,.product-details .button-outline{flex-basis:100%;width:100%}
    .basket-layout{gap:24px}
    .basket-item{padding:18px;gap:14px;border-radius:16px}
    .basket-image{width:96px;height:96px}
    .basket-info h3{font-size:1.8rem;line-height:1.04}
    .basket-price{font-size:2rem}
    .basket-summary{padding:24px 18px;border-radius:18px}
    .summary-row{gap:14px;font-size:.94rem}
    .checkout-layout{gap:22px}
    .checkout-layout .product-details{padding:24px 18px}
    .checkout-layout h2{font-size:2.2rem}
    .checkbox-option{align-items:flex-start}
    .checkbox-option input{margin-top:4px;flex:0 0 auto}
    #stripe-payment-modal{padding:12px!important}
    #stripe-payment-modal > div{margin:4vh auto!important;padding:24px 18px!important;border-radius:16px!important}
    #stripe-payment-title{font-size:2.35rem!important}
    .gallery-grid{grid-template-columns:1fr;gap:20px;margin-top:30px}
    .gallery-image{height:auto;aspect-ratio:1/1}
    .gallery-card h3{padding:20px 20px 8px;font-size:2rem}
    .gallery-card p{padding:0 20px 22px}
    .faq-item{padding:22px 18px;border-radius:16px}
    footer{padding:45px 0 25px}
    .copyright{margin-top:35px;padding-top:18px}
}

/* Home collection cards are intentionally shown two at a time on phones.
   Keep the copy compact enough that neither card is cropped or pushed wider
   than the viewport. */
@media(max-width:700px){
    .home-page .collection-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }
    .home-page .collection-grid .mobile-collection-heading{
        margin:20px 0 6px;
        font-size:clamp(1.8rem,8.3vw,2.2rem);
        line-height:1.08;
    }
    .home-page .collection-card{
        display:flex;
        flex-direction:column;
        min-width:0;
        padding:12px;
        border-radius:16px;
    }
    .home-page .collection-card .collection-image{
        aspect-ratio:4 / 5;
    }
    .home-page .collection-card h3{
        margin:13px 0 8px;
        min-height:0;
        font-size:clamp(1.22rem,5.6vw,1.58rem);
        line-height:1.05;
        overflow-wrap:anywhere;
    }
    .home-page .collection-card > p:not(.price){
        min-height:0;
        margin:0 0 12px;
        font-size:clamp(.8rem,3.8vw,.94rem);
        line-height:1.42;
    }
    .home-page .collection-card .price{
        margin:0 0 13px;
        font-size:1rem;
    }
    .home-page .collection-card .button{
        margin-top:auto;
        min-height:0;
        padding:11px 5px;
        font-size:clamp(.72rem,3.55vw,.9rem);
        line-height:1.16;
        letter-spacing:0;
    }
}

@media(max-width:360px){
    .home-page .collection-grid{gap:8px}
    .home-page .collection-card{padding:9px}
    .home-page .collection-card h3{font-size:1.14rem}
    .home-page .collection-card > p:not(.price){font-size:.76rem}
    .home-page .collection-card .button{font-size:.69rem}
}

/* Admin: keep the Email Templates editor entirely inside phone-width screens. */
.template-list,.template-card,.email-template,.template-card label,.template-card header{min-width:0;max-width:100%}
.template-card{overflow:hidden}
.template-card header>*{min-width:0;overflow-wrap:anywhere}
.template-card input,.template-card textarea{min-width:0;max-width:100%;overflow-wrap:anywhere}
.template-help{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:700px){
    .email-template{width:100%;max-width:100%}
    .email-template textarea{width:100%;max-width:100%;min-height:220px;resize:vertical}
    .email-template .template-help{font-size:.76rem}
    .email-template button{width:100%}
}

/* Gallery hidden launch version */
.gallery-nav-link{display:none!important}
