.ct-page {
    --ct-paper: #f6f1ea;
    --ct-card: #ffffff;
    --ct-ink: #292524;
    --ct-muted: #78716c;
    --ct-line: #e7e0d8;
    --ct-shadow: 0 10px 30px rgba(68, 48, 28, 0.08);
    background: var(--ct-paper);
    color: var(--ct-ink);
    padding: 28px 0 72px;
}
.ct-page h1, .ct-page h2, .ct-page p { color: var(--ct-ink); }
.ct-page h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; margin: 0 0 12px; }
.ct-page h2 { font-size: 22px; line-height: 1.2; margin: 0; }
.ct-kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--ct-muted); margin: 0 0 10px; }
.ct-lead { font-size: 20px; margin: 0 0 8px; }
.ct-support { color: var(--ct-muted); max-width: 640px; margin: 0 0 22px; }
.ct-hero, .ct-block, .ct-browse { width: min(1180px, calc(100% - 32px)); margin: 0 auto 28px; }
.ct-hero-actions, .ct-actions, .ct-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ct-page button, .ct-page .ct-primary, .ct-page .ct-quiet, .ct-page .ct-use, .ct-page .ct-textlink {
    width: auto !important; height: auto !important; min-height: 0 !important; box-sizing: border-box !important;
    text-transform: none !important; box-shadow: none !important; opacity: 1 !important; line-height: 1.2 !important;
}
.ct-primary, .ct-page button.ct-primary {
    display: inline-flex !important; align-items: center; justify-content: center; background: #292524 !important; color: #fffdf8 !important;
    -webkit-text-fill-color: #fffdf8 !important; border: 0 !important; border-radius: 999px !important; padding: 12px 18px !important;
    text-decoration: none; font-weight: 600; cursor: pointer;
}
.ct-quiet, .ct-page button.ct-quiet, .ct-page a.ct-quiet {
    display: inline-flex !important; align-items: center; background: transparent !important; color: #292524 !important;
    -webkit-text-fill-color: #292524 !important; border: 1px solid #d6d3d1 !important; border-radius: 999px !important;
    padding: 11px 16px !important; text-decoration: none; cursor: pointer;
}
.ct-quick, .ct-rail, .ct-chips { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.ct-quick::-webkit-scrollbar, .ct-rail::-webkit-scrollbar, .ct-chips::-webkit-scrollbar { display: none; }
.ct-rail-wrap { position: relative; margin: 0 -4px; }
.ct-rail-wrap .ct-rail { scroll-snap-type: x proximity; padding: 12px 28px 4px 4px; }
.ct-rail-wrap .ct-rail > * { scroll-snap-align: start; }
.ct-rail-wrap::before, .ct-rail-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 4px; width: 56px; z-index: 2; pointer-events: none; transition: opacity 0.2s ease;
}
.ct-rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--ct-paper), rgba(246, 241, 234, 0)); opacity: 0; }
.ct-rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--ct-paper), rgba(246, 241, 234, 0)); opacity: 1; }
.ct-rail-wrap.at-start::before { opacity: 0; }
.ct-rail-wrap:not(.at-start)::before { opacity: 1; }
.ct-rail-wrap.at-end::after { opacity: 0; }
.ct-page button.ct-rail-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px !important; height: 38px !important;
    border-radius: 50% !important; border: 1px solid var(--ct-line) !important; background: #fffdf8 !important; color: #292524 !important;
    box-shadow: 0 8px 18px rgba(41, 37, 36, 0.14); cursor: pointer; display: flex !important; align-items: center; justify-content: center;
    font-size: 18px; line-height: 1 !important; padding: 0 !important;
}
.ct-page button.ct-rail-nav.prev { left: -6px; }
.ct-page button.ct-rail-nav.next { right: -6px; }
.ct-page button.ct-rail-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
    .ct-page button.ct-rail-nav { display: none !important; }
}
.ct-page button.ct-count, .ct-page button.ct-chip, .ct-page button.ct-textlink {
    background: #fff !important; color: #292524 !important; -webkit-text-fill-color: #292524 !important;
    border: 1px solid var(--ct-line) !important; border-radius: 999px !important; padding: 10px 14px !important; cursor: pointer; white-space: nowrap;
}
.ct-page button.ct-count.active, .ct-page button.ct-chip.active { background: #292524 !important; color: #fffdf8 !important; -webkit-text-fill-color: #fffdf8 !important; border-color: #292524 !important; }
.ct-page button.ct-textlink { border: 0 !important; background: transparent !important; padding: 0 !important; color: #57534e !important; text-decoration: underline; }
.ct-occasion { flex: 0 0 128px; display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px; background: transparent !important; border: 0 !important; padding: 0 !important; color: #292524 !important; cursor: pointer; text-align: left; transition: transform 0.18s ease; }
.ct-occasion-art {
    display: block; width: 128px; height: 128px; border-radius: 18px; background-size: cover, cover; background-position: center, center;
    background-repeat: no-repeat, no-repeat; box-shadow: var(--ct-shadow), inset 0 -36px 28px -20px rgba(28, 20, 12, 0.22);
}
.ct-occasion-name { font-weight: 600; }
.ct-occasion-count { color: var(--ct-muted); font-size: 13px; }
.ct-occasion:hover { transform: translateY(-3px); }
.ct-occasion:hover .ct-occasion-art { box-shadow: 0 14px 28px rgba(68, 48, 28, 0.16), inset 0 -36px 28px -20px rgba(28, 20, 12, 0.22); }
.ct-shelf-head, .ct-toolbar, .ct-drawer-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ct-shelf-rail .ct-card { flex: 0 0 240px; }
.ct-sort { display: flex; align-items: center; gap: 8px; color: var(--ct-muted); font-size: 14px; }
.ct-sort select { background: #fff; color: #292524; border: 1px solid var(--ct-line); border-radius: 999px; padding: 10px 14px; }
.ct-drawer { position: fixed; inset: 0; background: rgba(41, 37, 36, 0.35); z-index: 40; display: flex; justify-content: flex-end; }
.ct-drawer[hidden] { display: none; }
.ct-drawer-panel { width: min(420px, 100%); height: 100%; overflow: auto; background: #fffdf8; padding: 22px; }
.ct-filter-label { margin: 18px 0 0; color: var(--ct-muted); font-size: 13px; }
.ct-active { display: flex; flex-wrap: wrap; gap: 8px; min-height: 8px; }
.ct-page button.ct-pill-x { background: #fff !important; color: #292524 !important; border: 1px solid var(--ct-line) !important; border-radius: 999px !important; padding: 8px 12px !important; cursor: pointer; }
.ct-match, .ct-status { color: var(--ct-muted); margin: 8px 0; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.ct-card { background: var(--ct-card); border-radius: 16px; box-shadow: var(--ct-shadow); overflow: hidden; min-width: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ct-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(68, 48, 28, 0.18); }
.ct-art { position: relative; overflow: hidden; background: #f7f1ea; }
.ct-art img, .ct-slot { position: absolute; }
.ct-art img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-slot {
    z-index: 1; background-color: #e7d3c4; background-size: 300% 100%, 300% 100%; background-repeat: no-repeat, no-repeat;
    border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.45);
}
.ct-slot.round { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
    .ct-card, .ct-card:hover, .ct-occasion, .ct-occasion:hover { transform: none !important; transition: none !important; }
}
.ct-type { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ct-badge { position: absolute; z-index: 3; top: 10px; left: 10px; background: #fffdf8; color: #292524; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
.ct-page button.ct-heart { position: absolute; z-index: 3; top: 8px; right: 8px; width: 36px !important; height: 36px !important; border-radius: 50% !important; border: 0 !important; background: rgba(255,253,248,0.92) !important; color: #292524 !important; cursor: pointer; }
.ct-page button.ct-heart.is-saved { color: #9f1239 !important; }
.ct-body { padding: 12px 12px 14px; }
.ct-body h2 { font-family: "Playfair Display", Georgia, serif; font-size: 18px; }
.ct-line { color: var(--ct-muted); font-size: 13px; margin: 4px 0 12px; }
.ct-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.ct-page button.ct-preview, .ct-page a.ct-use, .ct-page button.ct-more {
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 999px !important; padding: 10px 12px !important;
    text-decoration: none; cursor: pointer; font-weight: 600;
}
.ct-page button.ct-preview { background: #fff !important; color: #292524 !important; border: 1px solid var(--ct-line) !important; }
.ct-page a.ct-use, .ct-page button.ct-more { background: #292524 !important; color: #fffdf8 !important; -webkit-text-fill-color: #fffdf8 !important; border: 0 !important; font-size: 13px !important; text-align: center; white-space: normal; }
.ct-more { margin: 22px auto 0; display: flex !important; }
.ct-empty { grid-column: 1 / -1; background: #fff; border-radius: 16px; padding: 36px 20px; text-align: center; }
.ct-empty h2 { font-family: "Playfair Display", Georgia, serif; font-size: 32px; margin-bottom: 8px; }
.ct-skeleton { min-height: 280px; background: linear-gradient(90deg, #efe8df 25%, #f7f1ea 37%, #efe8df 63%); background-size: 400% 100%; animation: ct-shimmer 1.2s ease infinite; }
.ct-modal { position: fixed; inset: 0; z-index: 50; background: rgba(41, 37, 36, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.ct-modal[hidden] { display: none; }
.ct-modal-panel { width: min(720px, 100%); max-height: 100%; overflow: auto; background: #fffdf8; border-radius: 20px 20px 0 0; padding: 16px; }
.ct-modal-art { position: relative; overflow: hidden; border-radius: 16px; margin: 12px 0; min-height: 180px; }
.ct-modal-art .ct-slot, .ct-modal-art img { position: absolute; }
.ct-modal-art img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
    .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ct-modal { align-items: center; }
    .ct-modal-panel { border-radius: 20px; }
}
@media (min-width: 1024px) {
    .ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ct-quick, .ct-chips { flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-skeleton { animation: none; }
}
@keyframes ct-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
