.gift-page { width:100%; min-width:0; }
.gift-page *, .gift-product-grid > *, .gift-filters > * { min-width:0; }
.gift-page h1, .gift-page h2, .gift-page p { overflow-wrap:anywhere; }
.gift-header { margin-bottom:16px; flex-wrap:wrap; }
.gift-header p { margin:0; font-size:12px; }
.gift-hero { padding:8px 0 24px; grid-template-columns:minmax(0,1fr) 180px; gap:20px; }
.gift-hero h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-.7px; margin:12px 0; }
.gift-hero-art { min-height:160px; }
.gift-hero-art > div { font-size:65px; }
.gift-hero p:not(.eyebrow) { margin-bottom:0; }
.gift-recipient-name { color:var(--red,#b74338); font-weight:800; }
.gift-tabs a { flex:1; text-align:center; padding:15px 10px; overflow-wrap:anywhere; }
.gift-saved { display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:12px; padding:14px; }
.gift-saved-photo { display:flex; flex-direction:column; width:80px; text-decoration:none; color:#54745f; background:#f0f2e9; border-radius:10px; overflow:hidden; }
.gift-saved-photo img { width:80px; height:90px; object-fit:contain; background:#fff; }
.gift-saved-photo > span { display:block; text-align:center; font-size:10px; padding:6px 2px; }
.gift-saved-copy { align-self:center; }
.gift-choose-products { display:flex; justify-content:center; margin-top:20px; white-space:normal !important; }
#discover-title { scroll-margin-top:16px; }
.gift-amazon-link { margin-top:16px; }
.gift-amazon-link summary { cursor:pointer; font-size:13px; font-weight:600; padding:8px 0; }
.gift-amazon-link[open] summary { margin-bottom:12px; }
.gift-partner { margin:24px 0; padding:22px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; border:1px solid #d7dfcc; border-radius:18px; background:#f5f7ed; }
.gift-partner > div { flex:1 1 300px; }
.gift-partner h2 { font-family:Georgia,serif; font-size:25px; margin:6px 0; font-weight:400; }
.gift-partner p { line-height:1.6; font-size:13px; }
.gift-partner .eyebrow { font-size:10px; margin:0; }
.gift-partner .button { white-space:normal; text-align:center; }
.gift-page img[hidden], .gift-page button[hidden] { display:none; }
.gift-filters { grid-template-columns:minmax(180px,1.7fr) repeat(3,minmax(100px,1fr)) auto; }
.gift-filters .button { white-space:normal; }
.gift-search-box { position:relative; }
#gift-suggestions { position:absolute; left:0; right:0; top:100%; list-style:none; margin:4px 0 0; padding:6px; background:#fffefa; border:1px solid #c6d2bf; border-radius:12px; box-shadow:0 12px 28px #203e3420; z-index:15; max-height:300px; overflow-y:auto; }
#gift-suggestions button { display:block; width:100%; background:none; border:0; text-align:left; padding:12px 10px; min-height:44px; color:#203e34; font-size:13px; white-space:normal; overflow-wrap:anywhere; border-radius:8px; }
#gift-suggestions button:hover, #gift-suggestions button:focus-visible { background:#edf4e9; }
.gift-clear { display:inline-block; font-size:13px; padding:9px 0; }
.gift-catalog-meta{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:12px 0 0;font-size:12px;color:#657269}
.gift-catalog-count{margin:0;line-height:1.5}
.gift-catalog-help{max-width:100%;font-size:12px}
.gift-catalog-help summary{cursor:pointer;text-underline-offset:3px;line-height:1.8}
.gift-catalog-help summary:hover{text-decoration:underline}
.gift-catalog-help summary:focus-visible{outline:3px solid #b9c7a1;outline-offset:3px;border-radius:3px}
.gift-catalog-help[open]{flex-basis:100%}
.gift-catalog-help-content{margin-top:8px;padding:12px 16px;background:#eeefe5;border-radius:12px;line-height:1.6;overflow-wrap:anywhere}
.gift-catalog-help-content p,.gift-catalog-help-content .gift-price-note{font-size:12px;line-height:1.6;margin:0 0 10px}
.gift-catalog-help-content p:last-child{margin-bottom:0}
.gift-open-product { position:relative; text-decoration:none; }
.gift-product-image { display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.gift-product-image img { display:block; min-height:0; max-width:100%; max-height:100%; }
.gift-product-image > .gift-photo-count { position:absolute; bottom:9px; right:9px; padding:6px 9px; border-radius:20px; background:#fffefaec; border:1px solid #dedfd5; font-size:10px; font-weight:600; color:#203e34; }
.gift-product-dialog { width:min(calc(100% - 28px),900px); max-height:calc(100dvh - 32px); border:1px solid #d9dfd1; padding:28px; border-radius:22px; color:#203e34; background:#fffefa; overflow-y:auto; box-shadow:0 25px 80px #0004; }
.gift-product-dialog[open] { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:30px; }
.gift-product-dialog::backdrop { background:#122c24ab; backdrop-filter:blur(3px); }
.gift-dialog-close { position:absolute; top:8px; right:10px; width:44px; height:44px; border:0; border-radius:50%; background:#f0f2e7; color:#203e34; font-size:28px; z-index:2; }
.gift-dialog-gallery > img { display:block; width:100%; height:clamp(220px,45vh,400px); object-fit:contain; border-radius:14px; background:#f7f7f2; touch-action:pan-y; }
.gift-gallery-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; padding:8px 0; }
.gift-gallery-controls button { width:44px; height:44px; border:1px solid #c9d1be; background:#fff; border-radius:10px; color:#203e34; font-size:20px; }
.gift-thumbnails { display:flex; gap:8px; overflow-x:auto; padding:4px; }
.gift-thumbnails button { flex:0 0 54px; width:54px; height:54px; padding:4px; border:1px solid #d7decd; border-radius:8px; background:#fff; }
.gift-thumbnails button[aria-pressed=true] { outline:2px solid #24684e; }
.gift-thumbnails img { width:100%; height:100%; object-fit:contain; }
.gift-dialog-info { display:flex; flex-direction:column; align-items:start; justify-content:center; gap:12px; overflow-wrap:anywhere; }
.gift-dialog-info h2 { font-family:Georgia,serif; font-weight:400; font-size:clamp(25px,3vw,34px); margin:0; }
.gift-dialog-info p { color:#657467; font-size:14px; }
.gift-dialog-info .button { width:100%; }
.gift-pagination { flex-wrap:wrap; padding:16px 0; }
.gift-pagination a { border:1px solid #b6c5ae; background:#fffefa; border-radius:12px; min-height:46px; padding:12px 16px; text-decoration:none; font-weight:600; }
.gift-page[aria-busy=true] .gift-discover { opacity:.6; }
@media(max-width:1000px) {
    .gift-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .gift-search-box { grid-column:1 / -1; }
    .gift-filters > .button { grid-column:1 / -1; }
}
@media(max-width:640px) {
    .gift-hero { grid-template-columns:minmax(0,1fr); }
    .gift-saved { grid-template-columns:64px minmax(0,1fr); gap:10px; padding:12px; }
    .gift-saved-photo { width:64px; }
    .gift-saved-photo img { width:64px; height:76px; }
    .gift-wish-actions { grid-column:2; justify-content:flex-end; }
    .gift-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .gift-search-box { grid-column:1 / -1; }
    .gift-filters > div:nth-last-of-type(1) { grid-column:1 / -1; }
    .gift-product-dialog { padding:45px 16px 22px; }
    .gift-product-dialog[open] { grid-template-columns:minmax(0,1fr); gap:20px; }
    .gift-dialog-gallery > img { height:270px; }
    .gift-product-grid { gap:10px; }
    .gift-pagination { gap:10px; font-size:12px; }
    .gift-pagination strong { order:-1; width:100%; text-align:center; }
}
/* Link first: separate Amazon products from plain-text wishes. */
.gift-amazon-add { min-width:0; margin:20px 0; padding:24px; border:1px solid #e9d6b1; border-radius:20px; background:#fffbf2; display:grid; gap:12px; }
.gift-amazon-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.gift-amazon-heading h3,.gift-amazon-add p { margin:0; }
.gift-amazon-heading a { color:#244c3f; font-weight:700; }
.gift-amazon-add input { box-sizing:border-box; min-width:0; width:100%; padding:13px; border:1px solid #c9c9bf; border-radius:10px; background:#fff; font:inherit; }
.gift-amazon-name { display:grid; gap:7px; }
.gift-amazon-name small { color:#626d67; }
.gift-amazon-add .button { justify-self:start; }
@media(max-width:640px) { .gift-amazon-add { padding:18px; } .gift-amazon-add .button { width:100%; } }
.gift-tabs > span[aria-disabled="true"] { padding:18px 16px; font-size:13px; align-self:center; text-align:center; }

/* Search by budget, category and type, with room for long Portuguese labels. */
.gift-filters{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:14px}
.gift-filters .gift-search-box{grid-column:span 2}.gift-filters>div{min-width:0}.gift-filters select,.gift-filters input{width:100%;max-width:100%;min-width:0}
.gift-filters>.button{align-self:end;min-height:48px}.gift-price-note{font-size:.8rem;line-height:1.5;color:#657269;margin:12px 0 18px;max-width:85ch}
.gift-product-price{font-size:1.1rem;font-weight:800;color:#203e33;margin:8px 0 12px}.gift-product-price small{display:block;font-size:.72rem;font-weight:400;color:#68766e;margin-top:3px}
@media(max-width:700px){.gift-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-filters .gift-search-box,.gift-filters>.button{grid-column:1/-1}.gift-filters label{font-size:.82rem}.gift-filters select{font-size:.86rem}.gift-product-category{font-size:.7rem}}
@media(max-width:359px){.gift-filters{grid-template-columns:minmax(0,1fr)}}

@media(max-width:700px){.gift-filters .gift-search-box{order:1}.gift-filters>div:has(#gift-budget){order:2}.gift-filters>div:has(#gift-store){order:3;grid-column:auto}.gift-filters>div:has(#gift-category){order:4;grid-column:1/-1}.gift-filters>div:has(#gift-type){order:5;grid-column:1/-1}.gift-filters>div:has(#gift-sort){order:6;grid-column:1/-1}.gift-filters>.button{order:7}}
