/* Trust / bond motion — calm, atelier tone */

/* —— 1. Atelier craft loop —— */
.gg-craft {
    --craft-t: 9s;
    margin-top: 1.15rem;
    padding: 1rem 1rem 0.9rem;
    background: linear-gradient(165deg, #1a1410 0%, #2a1f18 55%, #1c1510 100%);
    border: 1px solid rgba(196, 163, 90, 0.28);
    border-radius: 0.65rem;
    color: #f7f1ea;
    overflow: hidden;
}
.gg-craft__stage {
    position: relative;
    height: 8.5rem;
    margin-bottom: 0.85rem;
}
.gg-craft__slab {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 5.6rem;
    height: 4rem;
    margin-left: -2.8rem;
    border-radius: 0.25rem;
    background: linear-gradient(145deg, #f4efe6, #e4d7c4 55%, #d8c8b0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    animation: gg-craft-slab var(--craft-t) ease-in-out infinite;
}
.gg-craft__vein {
    position: absolute;
    left: 50%;
    top: 62%;
    height: 1px;
    background: rgba(140, 120, 100, 0.45);
    transform-origin: left center;
    animation: gg-craft-vein var(--craft-t) ease-in-out infinite;
}
.gg-craft__vein--a { width: 3.2rem; margin-left: -1.8rem; }
.gg-craft__vein--b { width: 2.4rem; margin-left: -0.6rem; top: 70%; animation-delay: 0.15s; }
.gg-craft__brush {
    position: absolute;
    left: 18%;
    top: 18%;
    width: 3.4rem;
    height: 0.55rem;
    transform-origin: 90% 50%;
    animation: gg-craft-brush var(--craft-t) cubic-bezier(0.4, 0.05, 0.2, 1) infinite;
}
.gg-craft__brush-handle {
    position: absolute;
    inset: 0 28% 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5a2b, #c4925a);
}
.gg-craft__brush-tip {
    position: absolute;
    right: 0;
    top: -0.1rem;
    width: 0.85rem;
    height: 0.75rem;
    border-radius: 40% 10% 40% 10%;
    background: #c4195a;
}
.gg-craft__stroke {
    position: absolute;
    left: 50%;
    height: 2px;
    border-radius: 999px;
    background: rgba(196, 25, 90, 0.75);
    transform-origin: left center;
    opacity: 0;
    animation: gg-craft-stroke var(--craft-t) ease-in-out infinite;
}
.gg-craft__stroke--a { top: 64%; width: 2.4rem; margin-left: -1.1rem; }
.gg-craft__stroke--b { top: 72%; width: 1.7rem; margin-left: -0.4rem; animation-delay: 0.12s; }
.gg-craft__mini {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: -1.2rem;
    border-radius: 0.15rem;
    background:
        radial-gradient(circle at 40% 35%, #f2c4d4, transparent 45%),
        linear-gradient(160deg, #a83054, #5c1830);
    opacity: 0;
    transform: scale(0.6);
    animation: gg-craft-mini var(--craft-t) ease-in-out infinite;
}
.gg-craft__frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.9rem;
    height: 2.9rem;
    margin: -1.45rem 0 0 -1.45rem;
    border: 2px solid #c4a35a;
    border-radius: 0.12rem;
    opacity: 0;
    animation: gg-craft-frame var(--craft-t) ease-in-out infinite;
}
.gg-craft__spark {
    position: absolute;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: #f3d9a4;
    opacity: 0;
    animation: gg-craft-spark var(--craft-t) ease-out infinite;
}
.gg-craft__spark--a { left: 58%; top: 42%; }
.gg-craft__spark--b { left: 42%; top: 40%; animation-delay: 0.2s; }
.gg-craft__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    text-align: center;
}
.gg-craft__step {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(247, 241, 234, 0.45);
    animation: gg-craft-label var(--craft-t) ease-in-out infinite;
}
.gg-craft__step--2 { animation-delay: 0.05s; }
.gg-craft__step--3 { animation-delay: 0.1s; }

@keyframes gg-craft-slab {
    0%, 18% { opacity: 1; transform: scale(1); }
    55% { opacity: 0.35; transform: scale(0.92); }
    72%, 100% { opacity: 0.2; transform: scale(0.9); }
}
@keyframes gg-craft-vein {
    0%, 20% { opacity: 0.7; }
    50%, 100% { opacity: 0; }
}
@keyframes gg-craft-brush {
    0%, 18% { opacity: 0; transform: translate(0, 0) rotate(-18deg); }
    28% { opacity: 1; transform: translate(1.2rem, 1.4rem) rotate(-8deg); }
    42% { opacity: 1; transform: translate(2.6rem, 2rem) rotate(6deg); }
    55%, 100% { opacity: 0; transform: translate(3.4rem, 1.2rem) rotate(12deg); }
}
@keyframes gg-craft-stroke {
    0%, 26% { opacity: 0; transform: scaleX(0); }
    38% { opacity: 1; transform: scaleX(1); }
    58%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes gg-craft-mini {
    0%, 48% { opacity: 0; transform: scale(0.6); }
    62% { opacity: 1; transform: scale(1.05); }
    78%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes gg-craft-frame {
    0%, 58% { opacity: 0; transform: scale(0.85); }
    72%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes gg-craft-spark {
    0%, 68% { opacity: 0; transform: translateY(0); }
    78% { opacity: 1; transform: translateY(-0.4rem); }
    100% { opacity: 0; transform: translateY(-0.8rem); }
}
@keyframes gg-craft-label {
    0%, 20% { color: rgba(247, 241, 234, 0.9); }
    35%, 100% { color: rgba(247, 241, 234, 0.4); }
}
.gg-craft__step--2 { animation-name: gg-craft-label-2; }
.gg-craft__step--3 { animation-name: gg-craft-label-3; }
@keyframes gg-craft-label-2 {
    0%, 28% { color: rgba(247, 241, 234, 0.4); }
    32%, 55% { color: rgba(247, 241, 234, 0.95); }
    70%, 100% { color: rgba(247, 241, 234, 0.4); }
}
@keyframes gg-craft-label-3 {
    0%, 60% { color: rgba(247, 241, 234, 0.4); }
    68%, 100% { color: rgba(243, 217, 164, 0.95); }
}

/* —— 2. Packed with care toast —— */
.gg-pack {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(20, 15, 12, 0.28);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.gg-pack.is-on {
    opacity: 1;
    pointer-events: auto;
}
.gg-pack__card {
    width: min(100%, 18.5rem);
    padding: 1.35rem 1.25rem 1.25rem;
    text-align: center;
    background: #fffdf9;
    border: 1px solid rgba(196, 163, 90, 0.4);
    border-radius: 0.85rem;
    box-shadow: 0 22px 48px rgba(20, 15, 12, 0.2);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-pack.is-on .gg-pack__card {
    transform: translateY(0) scale(1);
}
.gg-pack__scene {
    position: relative;
    width: 5.5rem;
    height: 4.2rem;
    margin: 0 auto 0.85rem;
}
.gg-pack__box {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 3.4rem;
    height: 2.1rem;
    margin-left: -1.7rem;
    background: linear-gradient(180deg, #f0e2cf, #d9c3a4);
    border-radius: 0.15rem;
    box-shadow: 0 6px 14px rgba(20, 15, 12, 0.12);
}
.gg-pack__lid {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    width: 3.7rem;
    height: 0.55rem;
    margin-left: -1.85rem;
    background: #c4a35a;
    border-radius: 0.1rem;
    transform-origin: 20% 100%;
    animation: gg-pack-lid 1.4s cubic-bezier(0.4, 0.05, 0.2, 1) both;
}
.gg-pack__ribbon {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 0.35rem;
    height: 2.1rem;
    margin-left: -0.18rem;
    background: #c4195a;
    animation: gg-pack-ribbon 1.4s ease both;
}
.gg-pack__bow {
    position: absolute;
    left: 50%;
    bottom: 2.15rem;
    width: 0.9rem;
    height: 0.55rem;
    margin-left: -0.45rem;
    background: #c4195a;
    border-radius: 50%;
    box-shadow: -0.45rem 0 0 #a83054, 0.45rem 0 0 #a83054;
    animation: gg-pack-bow 1.4s ease both;
}
.gg-pack__kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #c4195a;
}
.gg-pack__note {
    margin: 0.45rem 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3d342c;
}
@keyframes gg-pack-lid {
    0% { transform: rotate(-28deg) translateY(-0.6rem); opacity: 0.7; }
    55% { transform: rotate(-8deg) translateY(-0.15rem); }
    100% { transform: rotate(0) translateY(0); opacity: 1; }
}
@keyframes gg-pack-ribbon {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); }
}
@keyframes gg-pack-bow {
    0%, 45% { opacity: 0; transform: scale(0.4); }
    100% { opacity: 1; transform: scale(1); }
}

/* —— 3. Secure checkout pulse —— */
.gg-secure {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.35rem 0 0.15rem;
    padding: 0.65rem 0.8rem;
    background: linear-gradient(90deg, rgba(196, 25, 90, 0.08), rgba(196, 163, 90, 0.12));
    border: 1px solid rgba(196, 25, 90, 0.18);
    border-radius: 0.55rem;
    overflow: hidden;
}
.gg-secure__lock {
    position: relative;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}
.gg-secure__shackle {
    position: absolute;
    left: 50%;
    top: 0.05rem;
    width: 0.7rem;
    height: 0.55rem;
    margin-left: -0.35rem;
    border: 2px solid #c4195a;
    border-bottom: 0;
    border-radius: 0.45rem 0.45rem 0 0;
    animation: gg-secure-shackle 2.8s ease-in-out infinite;
}
.gg-secure__body {
    position: absolute;
    left: 50%;
    bottom: 0.05rem;
    width: 0.95rem;
    height: 0.7rem;
    margin-left: -0.48rem;
    border-radius: 0.15rem;
    background: #c4195a;
}
.gg-secure__pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
    transform: translateX(-100%);
    animation: gg-secure-pulse 3.2s ease-in-out infinite;
}
.gg-secure__copy {
    position: relative;
    font-size: 0.78rem;
    font-weight: 500;
    color: #5a4a40;
    letter-spacing: 0.02em;
}
.gg-cart__actions .gg-btn--primary:not(:disabled) {
    animation: gg-secure-btn 2.8s ease-in-out infinite;
}
@keyframes gg-secure-shackle {
    0%, 70%, 100% { transform: translateY(0); }
    78% { transform: translateY(-1px); }
}
@keyframes gg-secure-pulse {
    0%, 40% { transform: translateX(-100%); }
    70%, 100% { transform: translateX(100%); }
}
@keyframes gg-secure-btn {
    0%, 100% { box-shadow: 0 8px 22px rgba(196, 25, 90, 0.22); }
    50% { box-shadow: 0 10px 28px rgba(196, 25, 90, 0.38); }
}

/* —— 4. Gift journey —— */
.gg-journey {
    --journey-active: 2;
    margin: 1.75rem 0 1.5rem;
    padding: 1.35rem 1.2rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(20, 15, 12, 0.1);
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(20, 15, 12, 0.06);
}
.gg-journey__head { margin-bottom: 1.15rem; text-align: center; }
.gg-journey__head .gg-kicker { margin: 0 0 0.3rem; color: #c4195a; }
.gg-journey__title {
    margin: 0;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 600;
    color: #080604;
}
.gg-journey__track {
    position: relative;
    height: 0.2rem;
    margin: 0 1.4rem 1.15rem;
    background: rgba(20, 15, 12, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.gg-journey__progress {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #c4195a, #c4a35a);
    border-radius: inherit;
    animation: gg-journey-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gg-journey[data-active="1"] .gg-journey__progress { --fill: 8%; }
.gg-journey[data-active="2"] .gg-journey__progress { --fill: 38%; }
.gg-journey[data-active="3"] .gg-journey__progress { --fill: 68%; }
.gg-journey[data-active="4"] .gg-journey__progress { --fill: 100%; }
@keyframes gg-journey-fill {
    from { width: 0; }
    to { width: var(--fill, 38%); }
}
.gg-journey__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.gg-journey__step {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    text-align: center;
    opacity: 0.4;
    transform: translateY(6px);
    animation: gg-journey-step 0.55s ease forwards;
}
.gg-journey__step:nth-child(2) { animation-delay: 0.12s; }
.gg-journey__step:nth-child(3) { animation-delay: 0.22s; }
.gg-journey__step:nth-child(4) { animation-delay: 0.32s; }
.gg-journey__step.is-done,
.gg-journey__step.is-current { opacity: 1; }
.gg-journey__step strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: #080604;
}
.gg-journey__step span {
    font-size: 0.72rem;
    color: #6b5e54;
    line-height: 1.3;
}
.gg-journey__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #f6efe4;
    border: 1px solid rgba(196, 163, 90, 0.35);
    position: relative;
}
.gg-journey__step.is-current .gg-journey__icon {
    border-color: #c4195a;
    box-shadow: 0 0 0 4px rgba(196, 25, 90, 0.12);
    animation: gg-journey-glow 1.8s ease-in-out infinite;
}
.gg-journey__step.is-done .gg-journey__icon {
    background: rgba(196, 25, 90, 0.1);
    border-color: #c4195a;
}
.gg-journey__icon--paint::before {
    content: '';
    position: absolute;
    inset: 0.65rem 0.55rem 0.55rem 1.1rem;
    background: #c4195a;
    border-radius: 0.1rem 0.5rem 0.1rem 0.1rem;
    transform: rotate(-35deg);
}
.gg-journey__icon--pack::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.7rem;
    width: 1.1rem;
    height: 0.9rem;
    margin-left: -0.55rem;
    background: #c4a35a;
    border-radius: 0.1rem;
}
.gg-journey__icon--ship::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0.85rem;
    width: 1.35rem;
    height: 0.7rem;
    background: #c4195a;
    border-radius: 0.15rem 0.35rem 0.15rem 0.15rem;
}
.gg-journey__icon--door::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0.55rem;
    width: 0.95rem;
    height: 1.25rem;
    margin-left: -0.48rem;
    background: #8e1040;
    border-radius: 0.1rem 0.1rem 0 0;
}
@keyframes gg-journey-step {
    to { transform: translateY(0); }
}
@keyframes gg-journey-glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(196, 25, 90, 0.12); }
    50% { box-shadow: 0 0 0 7px rgba(196, 25, 90, 0.08); }
}

/* —— 5. Stand settle nudge —— */
.gg-stand-upsell[data-stand-upsell] {
    animation: gg-stand-settle 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gg-stand-upsell__media {
    animation: gg-stand-photo 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gg-stand-upsell__kicker {
    animation: gg-stand-kicker 1.6s ease-in-out 0.4s infinite;
}
@keyframes gg-stand-settle {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes gg-stand-photo {
    0% { transform: scale(1.06); filter: saturate(0.85); }
    100% { transform: scale(1); filter: saturate(1); }
}
@keyframes gg-stand-kicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

@media (max-width: 640px) {
    .gg-journey__steps { grid-template-columns: 1fr 1fr; gap: 0.85rem 0.5rem; }
    .gg-journey__track { margin: 0 0.5rem 1rem; }
    .gg-craft__stage { height: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gg-craft__slab,
    .gg-craft__vein,
    .gg-craft__brush,
    .gg-craft__stroke,
    .gg-craft__mini,
    .gg-craft__frame,
    .gg-craft__spark,
    .gg-craft__step,
    .gg-pack__lid,
    .gg-pack__ribbon,
    .gg-pack__bow,
    .gg-secure__shackle,
    .gg-secure__pulse,
    .gg-cart__actions .gg-btn--primary:not(:disabled),
    .gg-journey__progress,
    .gg-journey__step,
    .gg-journey__step.is-current .gg-journey__icon,
    .gg-stand-upsell[data-stand-upsell],
    .gg-stand-upsell__media,
    .gg-stand-upsell__kicker {
        animation: none !important;
    }
    .gg-journey__progress { width: var(--fill, 38%); }
    .gg-journey__step { opacity: 1; transform: none; }
    .gg-craft__mini,
    .gg-craft__frame { opacity: 1; }
}
