.drcake-weekly-product-visual { margin: 0 0 24px; }
.drcake-weekly-picture { display: block; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border-radius: 28px; background: #f4eee9; }
.drcake-weekly-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--drcake-desktop-position, center); }
.drcake-weekly-selector { margin: 24px 0; padding: clamp(20px,4vw,30px); border: 1px solid rgba(78,14,29,.14); border-radius: 26px; background: #fffaf7; box-shadow: 0 16px 42px rgba(78,14,29,.08); color: #4e0e1d; }
.drcake-weekly-selector fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.drcake-weekly-selector legend { margin-bottom: 13px; padding: 0; font-size: 18px; font-weight: 900; }
.drcake-weekly-help { margin: -7px 0 13px; color: rgba(78,14,29,.68); font-size: 13px; }
.drcake-weekly-option-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 11px; }
.drcake-weekly-option-grid label { position: relative; min-width: 0; cursor: pointer; }
.drcake-weekly-option-grid input { position: absolute; opacity: 0; pointer-events: none; }
.drcake-weekly-option-grid span { display: flex; min-height: 72px; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 16px; box-sizing: border-box; border: 1px solid rgba(78,14,29,.2); border-radius: 18px; background: #fff; transition: .18s ease; }
.drcake-weekly-option-grid strong { overflow-wrap: anywhere; font-size: 16px; line-height: 1.25; }
.drcake-weekly-option-grid small { color: rgba(78,14,29,.66); font-weight: 700; }
.drcake-weekly-option-grid input:checked + span { border-color: #4e0e1d; background: #4e0e1d; color: #fff; box-shadow: 0 9px 24px rgba(78,14,29,.2); transform: translateY(-1px); }
.drcake-weekly-option-grid input:checked + span small { color: rgba(255,255,255,.76); }
.drcake-weekly-option-grid input:disabled + span { cursor: not-allowed; opacity: .42; }
.drcake-weekly-option-grid input:focus-visible + span { outline: 3px solid #c6cc85; outline-offset: 3px; }
.drcake-weekly-summary { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #c6cc85; color: #4e0e1d; }
.drcake-weekly-summary[hidden] { display: none; }
.drcake-weekly-summary strong { font-size: 21px; }
.drcake-weekly-summary span { overflow-wrap: anywhere; }
.drcake-weekly-summary b { margin-top: 3px; font-size: 18px; }
.drcake-add-another-note { margin: 18px 0 0; }
.drcake-add-another-note a { display: inline-flex; align-items: center; gap: 8px; color: #4e0e1d; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.drcake-smart-upsell { clear: both; margin: 34px 0; padding: clamp(22px,4vw,34px); border-radius: 28px; background: #f3d8d2; color: #4e0e1d; }
.drcake-smart-upsell > header h2 { margin: 0; color: #4e0e1d; font-size: clamp(26px,4vw,40px); }
.drcake-smart-upsell > header p { margin: 7px 0 22px; }
.drcake-upsell-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.drcake-upsell-card { display: grid; grid-template-columns: minmax(130px,42%) 1fr; overflow: hidden; min-width: 0; border: 1px solid rgba(78,14,29,.12); border-radius: 22px; background: #fffaf7; box-shadow: 0 12px 30px rgba(78,14,29,.08); }
.drcake-upsell-card .drcake-weekly-picture { height: 100%; min-height: 220px; aspect-ratio: auto; border-radius: 0; }
.drcake-upsell-card > div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 22px; }
.drcake-upsell-card h3 { margin: 0 0 8px; color: #4e0e1d; font-size: 23px; overflow-wrap: anywhere; }
.drcake-upsell-card p { margin: 0 0 12px; color: #6d4b51; }
.drcake-upsell-card small { margin-bottom: 16px; font-weight: 800; }
.drcake-upsell-card .button { margin-top: auto; border: 0; border-radius: 999px; background: #4e0e1d; color: #fff; }
.drcake-weekly-catalogue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.drcake-weekly-catalogue-card { overflow: hidden; min-width: 0; border: 1px solid rgba(78,14,29,.12); border-radius: 26px; background: #fffaf7; box-shadow: 0 14px 36px rgba(78,14,29,.08); }
.drcake-weekly-catalogue-card .drcake-weekly-picture { aspect-ratio: 16 / 11; border-radius: 0; }
.drcake-weekly-catalogue-card > div { display: grid; gap: 9px; padding: 22px; }
.drcake-weekly-catalogue-card h3, .drcake-weekly-catalogue-card p { margin: 0; }
.drcake-weekly-catalogue-card h3 { color: #4e0e1d; font-size: clamp(24px,3vw,38px); }
.drcake-weekly-catalogue-card small { font-weight: 800; }
.drcake-weekly-catalogue-card a { justify-self: start; color: #4e0e1d; font-weight: 900; text-decoration: none; }
@media (max-width: 768px) {
	.drcake-weekly-picture { aspect-ratio: 4 / 5; border-radius: 22px; }
	.drcake-weekly-picture img { object-position: var(--drcake-mobile-position, center); }
	.drcake-weekly-selector { margin-inline: 0; padding: 18px 14px; border-radius: 20px; }
	.drcake-weekly-option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
	.drcake-weekly-option-grid span { min-height: 68px; padding: 12px; }
	.drcake-upsell-cards { display: flex; max-width: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding-bottom: 6px; }
	.drcake-upsell-card { min-width: min(84vw,320px); grid-template-columns: 1fr; scroll-snap-align: start; }
	.drcake-upsell-card .drcake-weekly-picture { min-height: 190px; aspect-ratio: 16 / 10; }
	.drcake-weekly-catalogue-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
	.drcake-weekly-option-grid { grid-template-columns: 1fr 1fr; }
	.drcake-weekly-option-grid strong { font-size: 14px; }
	.drcake-smart-upsell { padding: 18px 12px; border-radius: 22px; }
}

/* Single product: weekly image replaces the native main image instead of being duplicated in the summary. */
.woocommerce-product-gallery .drcake-weekly-picture { margin: 0; width: 100%; aspect-ratio: auto; border-radius: inherit; background: transparent; }
.woocommerce-product-gallery .drcake-weekly-picture img { width: 100%; height: auto; object-fit: cover; object-position: var(--drcake-desktop-position, center); }
@media (max-width: 768px) {
	.woocommerce-product-gallery .drcake-weekly-picture img { object-position: var(--drcake-mobile-position, center); }
}
