/* Afra Botanical Collection — scoped styling inherited from the approved Afra site. */
.cakes-section{--cake-wine:var(--burgundy,#76263c);--cake-edge:var(--edge,#e8c9d1);color:var(--ink,#503946);max-width:1190px;margin:auto}
.cakes-section .cake-intro{padding:10px 0 10px;text-align:center;max-width:760px;margin:0 auto}
.cakes-section .cake-kicker{display:block;font-size:.68rem;letter-spacing:.19em;font-weight:750;color:var(--cake-wine);text-transform:uppercase}
.cakes-section .cake-intro h2{font-size:clamp(1.9rem,3vw,2.55rem);margin:7px 0 8px;line-height:1.2}
.cakes-section .cake-intro p{font-size:.92rem;line-height:1.75;color:var(--muted);margin:0 auto;max-width:670px}
.cakes-section .cake-gallery-head{display:flex;justify-content:space-between;align-items:end;gap:8px;margin-top:20px}
.cakes-section .cake-gallery-head h3{font-size:1.12rem;margin:0 0 3px}
.cakes-section .cake-gallery-head p{font-size:.78rem;color:var(--muted);margin:0}
.cakes-section .cake-arrows{display:flex;gap:6px}
.cakes-section .cake-arrows button{width:32px;height:32px;border-radius:50%;border:1px solid var(--cake-edge);background:#fff9fb;color:var(--cake-wine);font-size:1.35rem;line-height:1}
.cakes-section .cake-rail{display:flex;gap:11px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:10px 2px 12px;overscroll-behavior-x:contain}
.cakes-section .cake-tile{scroll-snap-align:start;flex:0 0 152px;max-width:152px;padding:0 0 9px;overflow:hidden;text-align:start;border:1px solid var(--cake-edge);border-radius:12px;background:#fffafd;display:flex;flex-direction:column;gap:3px;box-shadow:0 6px 16px rgba(75,32,54,.04);color:inherit;cursor:pointer}
.cakes-section .cake-tile img{width:100%;height:123px;object-fit:cover;object-position:50% 53%;display:block}
.cakes-section .cake-tile strong{font-size:.88rem;color:var(--cake-wine);padding-inline:9px;white-space:nowrap}
.cakes-section .cake-tile .cake-tag{font-size:.7rem;color:var(--muted);padding-inline:9px;line-height:1.45;min-height:26px}
.cakes-section .cake-tile.is-selected{border:2px solid var(--cake-wine);padding-bottom:8px;box-shadow:0 4px 12px rgba(115,36,63,.11)}
.cakes-section .cake-inspiration-note{font-size:.74rem;color:var(--muted);margin:1px 0 20px;line-height:1.65}
.cakes-section .cake-customizer{margin:0 auto 22px;max-width:920px;padding:23px 26px 20px;border:1px solid var(--cake-edge);border-radius:15px;background:#fffafc;box-shadow:0 9px 30px rgba(86,33,54,.05)}
.cakes-section .cake-form-heading h3{font-size:1.48rem;line-height:1.25;margin:5px 0}
.cakes-section .cake-form-heading p{font-size:.83rem;color:var(--muted);margin:0 0 14px}
.cakes-section .cake-order-form{display:grid;gap:12px}
.cakes-section .cake-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.cakes-section .cake-field{min-width:0}
.cakes-section .cake-field>label{display:block;font-size:.78rem;font-weight:700;margin-bottom:5px;color:var(--cake-wine)}
.cakes-section .cake-field input,.cakes-section .cake-field select,.cakes-section .cake-field textarea{display:block;width:100%;max-width:100%;padding:10px 11px;background:#fff;border:1px solid #ddcbd1;border-radius:8px;font-size:.83rem;color:#453039;min-height:42px}
.cakes-section .cake-field textarea{resize:vertical;min-height:74px}
.cakes-section .cake-upload small{font-size:.69rem;line-height:1.65;color:var(--muted)}
.cakes-section .cake-decors{border:0;padding:0;margin:0}
.cakes-section .cake-decors legend{font-size:.79rem;font-weight:700;color:var(--cake-wine);margin-bottom:6px}
.cakes-section .cake-decor-choices{display:flex;gap:8px;flex-wrap:wrap}
.cakes-section .cake-decor-option{border:1px solid #ddcbd1;border-radius:8px;background:white;padding:8px 10px;font-size:.76rem;display:flex;align-items:center;gap:7px;cursor:pointer}
.cakes-section .cake-decor-option.is-selected{border-color:var(--cake-wine);background:#faedef}
.cakes-section .cake-decor-option input{accent-color:var(--cake-wine);max-width:15px}
.cakes-section .cake-checkout-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 0;border-top:1px solid var(--cake-edge)}
.cakes-section .cake-checkout-bottom>div{display:flex;flex-direction:column;min-width:0}
.cakes-section .cake-total-label{font-size:.74rem;color:var(--muted)}
.cakes-section #cake-total{font:700 1.55rem/1.2 Georgia,serif;color:var(--cake-wine);margin:4px 0}
.cakes-section .cake-checkout-bottom small{font-size:.67rem;line-height:1.55;color:var(--muted);max-width:440px}
.cakes-section .cake-add{white-space:nowrap;flex:none}
.cakes-section .cake-status{font-size:.79rem;color:#9a304c;margin:0;min-height:12px}
.cakes-section .cake-ns-note{font-size:.8rem;background:#fff1f4;color:var(--cake-wine);border-radius:6px;padding:10px;margin:0}
html.lang-fa .cakes-section .cake-intro,html.lang-fa .cakes-section .cake-form-heading{text-align:right}
html.lang-fa .cakes-section .cake-gallery-head{text-align:right}
html.lang-fa .cakes-section .cake-tile{text-align:right}
@media(max-width:700px){
 .cakes-section .cake-intro{padding:0 0 6px}.cakes-section .cake-intro h2{font-size:1.72rem}
 .cakes-section .cake-intro p{font-size:.8rem}
 .cakes-section .cake-gallery-head{margin-top:12px}
 .cakes-section .cake-gallery-head h3{font-size:.99rem}.cakes-section .cake-gallery-head p{font-size:.71rem}
 .cakes-section .cake-tile{flex-basis:134px;max-width:134px}.cakes-section .cake-tile img{height:104px}
 .cakes-section .cake-customizer{padding:18px 13px;border-radius:12px}
 .cakes-section .cake-form-grid{grid-template-columns:1fr;gap:12px}
 .cakes-section .cake-decor-choices{display:grid;grid-template-columns:1fr;gap:5px}
 .cakes-section .cake-checkout-bottom{align-items:stretch;flex-direction:column}
 .cakes-section .cake-add{width:100%}
}

/* 2026-11-04: prevent global form input rules from stretching radio controls on iPhone */
.cakes-section .cake-decors{display:block;min-width:0;max-width:100%;width:100%;min-inline-size:0}
.cakes-section .cake-decor-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:100%;width:100%;min-width:0}
.cakes-section label.cake-decor-option{display:grid;grid-template-columns:19px minmax(0,1fr);align-items:center;column-gap:11px;margin:0;min-width:0;max-width:100%;width:100%;min-height:51px;padding:10px 12px;position:relative;overflow:hidden;box-sizing:border-box;white-space:normal;text-align:start;line-height:1.4;font-size:.8rem;cursor:pointer}
.cakes-section label.cake-decor-option input[type="radio"]{appearance:auto;display:block!important;position:static!important;inset:auto!important;box-sizing:border-box!important;float:none!important;min-width:18px!important;max-width:18px!important;width:18px!important;min-height:18px!important;max-height:18px!important;height:18px!important;margin:0!important;padding:0!important;flex:none!important;vertical-align:middle}
.cakes-section label.cake-decor-option span{display:block;position:static;min-width:0;max-width:100%;margin:0;padding:0;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.5;font-size:.79rem}
.cakes-section .cake-decor-option.is-disabled{opacity:.45;cursor:not-allowed;background:#f9f4f5}
.cakes-section .cake-decor-option.is-disabled input{cursor:not-allowed}
.cakes-section .cake-tile .cake-tag:empty{display:none}
html.lang-fa .cakes-section label.cake-decor-option{text-align:right}
@media(max-width:700px){
 .cakes-section .cake-decor-choices{grid-template-columns:1fr;gap:7px}
 .cakes-section label.cake-decor-option{padding:10px 12px;min-height:47px;grid-template-columns:19px minmax(0,1fr)}
}

/* Cake gallery detail view — image is small in the carousel and zooms only when tapped. */
.cakes-section .cake-tile-image{display:block;position:relative;width:100%;line-height:0}
.cakes-section .cake-tile .cake-tile-image img{width:100%;height:123px;object-fit:cover;display:block}
.cakes-section .cake-expand-icon{position:absolute;right:7px;bottom:7px;font-size:18px;line-height:25px;width:27px;height:27px;border-radius:50%;background:rgba(255,248,250,.9);color:var(--cake-wine);text-align:center;box-shadow:0 1px 7px #4a203330}
.cakes-section .cake-lightbox{border:0;padding:0;width:min(91vw,650px);max-height:90dvh;background:#fff9fa;color:var(--ink);border-radius:13px;overflow:auto;box-shadow:0 20px 80px #240b1a66}
.cakes-section .cake-lightbox::backdrop{background:rgba(29,12,21,.83);backdrop-filter:blur(3px)}
.cakes-section .cake-lightbox-body{position:relative;display:flex;flex-direction:column}
.cakes-section .cake-large-photo{display:block;width:100%;height:auto;max-height:72dvh;object-fit:contain;background:#fdf0f4}
.cakes-section .cake-zoom-close{position:absolute;top:9px;right:9px;z-index:1;display:grid;place-items:center;border:1px solid #dfc0ca;background:#fff9fa;color:var(--cake-wine);width:35px;height:35px;border-radius:100%;font-size:25px;line-height:1;cursor:pointer}
.cakes-section .cake-lightbox-footer{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 15px;color:var(--cake-wine)}
.cakes-section .cake-lightbox-footer strong{font-size:1rem}
@media(max-width:700px){
 .cakes-section .cake-tile .cake-tile-image img{height:104px}
 .cakes-section .cake-lightbox-footer{gap:8px}
 .cakes-section .cake-lightbox-footer .btn{font-size:12px;padding:9px 12px;white-space:normal;text-align:center}
}

/* Serving estimates displayed with each diameter. Responsive and bilingual. */
.cakes-section .cake-servings-note{display:block;color:var(--muted);margin-top:5px;font-size:.69rem;line-height:1.65}
.cakes-section #cake-size{font-variant-numeric:tabular-nums;font-size:.82rem}
@media(max-width:400px){.cakes-section #cake-size{font-size:.78rem;padding-inline:7px}}


/* Compact grouped Botanical Collection gallery (Nov 4 2026) */
.cakes-section .cake-tier-groups{display:grid;gap:12px;margin:14px 0 9px}
.cakes-section .cake-tier-group{min-width:0;border:1px solid var(--cake-edge);border-radius:13px;background:#fffafb;padding:10px 12px 12px}
.cakes-section .cake-group-heading{display:flex;align-items:center;gap:8px 18px;justify-content:space-between;margin-bottom:8px;flex-wrap:wrap}
.cakes-section .cake-group-heading h4{font-size:.94rem;font-weight:750;margin:0;color:var(--cake-wine)}
.cakes-section .cake-group-explainer{font-size:.73rem;color:var(--muted);line-height:1.4}
.cakes-section .cake-tier-cards{display:flex;align-items:flex-start;gap:9px;overflow-x:auto;scrollbar-width:thin;max-width:100%;padding:1px 1px 5px}
.cakes-section .cake-tier-cards .cake-tile{flex:0 0 142px;max-width:142px;min-height:157px;padding-bottom:7px;gap:3px}
.cakes-section .cake-tier-cards .cake-tile .cake-tile-image img{height:98px;object-fit:cover}
.cakes-section .cake-tier-cards .cake-tile strong{font-size:.78rem;padding-inline:8px}
.cakes-section .cake-tier-cards .cake-tile .cake-tag{font-size:.64rem;padding-inline:8px;line-height:1.35;min-height:17px}
.cakes-section .cake-own-choice{display:flex;align-items:center;text-align:start;gap:12px;width:100%;padding:12px 14px;border:1px dashed #c89da9;background:#fff7f9;border-radius:12px;color:var(--cake-wine);cursor:pointer;margin:7px 0 12px}
.cakes-section .cake-own-choice.is-selected{border:2px solid var(--cake-wine);background:#faeaf0}
.cakes-section .cake-own-choice > span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.cakes-section .cake-own-choice strong{font-size:.85rem;font-weight:750}
.cakes-section .cake-own-choice small{font-size:.72rem;color:var(--muted);line-height:1.45}
.cakes-section .cake-own-glyph{width:34px;height:34px;border-radius:50%;background:#f5e4e9;display:grid;place-items:center;flex:none;font-size:1.1rem}
.cakes-section .cake-own-arrow{font-size:1.3rem;flex:none}
.cakes-section .cake-own-note{font-size:.76rem;line-height:1.65;border-inline-start:3px solid var(--cake-wine);margin:8px 0 0;background:#fff2f5;padding:8px 11px;color:#5c3b48}
html.lang-fa .cakes-section .cake-tier-group{text-align:right}
html.lang-fa .cakes-section .cake-group-heading{flex-direction:row}
@media(max-width:700px){
 .cakes-section .cake-tier-groups{gap:9px;margin-top:12px}
 .cakes-section .cake-tier-group{padding:9px 8px 9px;border-radius:11px}
 .cakes-section .cake-group-heading{gap:3px 10px;margin-bottom:6px}
 .cakes-section .cake-group-heading h4{font-size:.85rem}
 .cakes-section .cake-group-explainer{font-size:.68rem}
 .cakes-section .cake-tier-cards{gap:7px}
 .cakes-section .cake-tier-cards .cake-tile{flex:0 0 110px;max-width:110px;min-height:133px;border-radius:9px}
 .cakes-section .cake-tier-cards .cake-tile .cake-tile-image img{height:77px}
 .cakes-section .cake-tier-cards .cake-tile strong{font-size:.75rem}
 .cakes-section .cake-tier-cards .cake-tile .cake-tag{font-size:.61rem}
 .cakes-section .cake-own-choice{padding:10px 10px;gap:9px}
}

.cakes-section bdi[dir="ltr"]{direction:ltr;unicode-bidi:isolate;white-space:nowrap;display:inline-block}
