:root {
    --bg: #f7f3ef;
    --rope: #8b5a2b;
    --wood: #c49a6c;
    --shadow: rgba(0,0,0,0.25);
    --bg-transparent: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    font-family: 'Georgia', serif;
    background: var(--bg);
    color: #333;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><text y="28" font-size="25">❤️</text></svg>') 16 16, auto;
}

.heart-cursor {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    color: red;
    user-select: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

header {
    padding: 24px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* ===== BOTÕES DE VISUALIZAÇÃO ===== */
.view-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.view-controls button {
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    background: #eee;
}

.view-controls button.active {
    background: #333;
    color: #fff;
}

/* ===== CONTAINER SIMULANDO VIEWPORT ===== */
.viewport {
    position: relative;
    height: 100svh;
    margin: 0 auto;
    transition: width .4s ease;
    background: var(--bg-transparent);
}

.viewport.desktop { width: 100%; }
.viewport.tablet { width: 820px; }
.viewport.mobile { width: 390px; }

/* ===== VARAL ===== */
.varal-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    /*padding: 80px 40px 120px;*/
    overflow: scroll;
}

.varal {
    position: relative;
    display: flex;
    gap: 80px;
    /* padding-bottom: 60px; */
    min-width: max-content;
    animation: sway 12s infinite ease-in-out;
    will-change: transform;
    transition: transform 0.3s ease;
}

.varal-wrapper::-webkit-scrollbar {
    display: none;
}

.varal .item:nth-child(2) { 
    margin-left: 5rem !important;
}

.varal .item:last-of-type {
    margin-right: 6rem !important;
}

.scroll-buttons {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    /* width: calc(100% - 40px); */
    pointer-events: auto;
    z-index: 1000;
    pointer-events: none;
}

.scroll-buttons button {
    background: transparent;
    border: none;
    outline: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.scroll-buttons button#scroll-left {
    transform: rotate(90deg);
}

.scroll-buttons button#scroll-left:hover {
    transform: rotate(90deg) scale(1.2);
}

.scroll-buttons button#scroll-right {
    transform: rotate(-90deg);
}

.scroll-buttons button#scroll-right:hover {
    transform: rotate(-90deg) scale(1.2);
}

/* CORDA */
.rope {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
}

.rope svg {
    width: 100%;
    height: 100%;
}

/* ITEM */
.item {
    position: relative;
    width: 220px;
    flex-shrink: 0;
    text-align: center;
}

/* PREGADOR */
.clothespin {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 50px;
    z-index: 3;
}

.clothespin::before,
.clothespin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 50px;
    background: var(--wood);
    border-radius: 4px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
}

.clothespin::before {
    left: 0;
    transform: rotate(-2deg);
}

.clothespin::after {
    right: 0;
    transform: rotate(2deg);
}

/* PREGADOR CORAÇÃO CSS MODERNO */
/* .coracao {
    position: absolute;
    top: -0.1rem;
    left: 50%;
    transform: translateX(-50%);
    --c: red;
    width: 5rem;
    aspect-ratio: 1;
    background: radial-gradient(circle at 60% 65%, var(--c) 64%, #0000 65%) top left / 50% 50%, radial-gradient(circle at 40% 65%, var(--c) 64%, #0000 65%) top right / 50% 50%, conic-gradient(from -45deg at 50% 85.5%, var(--c) 90deg, #0000 0) bottom / 100% 50%;
    background-repeat: no-repeat;
    z-index: 3;
} */

/* FOTO */
.photo {
    margin-top: 60px;
    background: #fff;
    padding: 10px 10px 30px;
    box-shadow: 0 12px 25px var(--shadow);
    transform: rotate(var(--rot));
    aspect-ratio: 1 / 1;

    transition: all 1.2s ease;
    filter: grayscale(100%) blur(4px) brightness(0.7);
    opacity: 0.85;
}

.photo:hover {
  filter: grayscale(0%) blur(0) brightness(1);
  opacity: 1;
  transform: rotate(var(--rot)) scale(1.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* width: 100%;
    display: block;
    border-radius: 2px; */
}

.photo span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.site-footer {
	position: fixed;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	color: rgba(0, 0, 0, 0.45);
	pointer-events: none; /* NÃO interfere em hover/scroll */
	white-space: nowrap;
	z-index: 10;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	pointer-events: auto; /* link continua clicável */
}

/* VIDEO – estado normal */
.photo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;

    transition:
        transform 0.6s ease,
        background-color 0.6s ease;
}

/* VIDEO – hover (efeito suave) */
.photo:hover video {
    object-fit: contain;          /* muda instantâneo */
    background-color: #000;       /* mas o fundo anima */
    transform: scale(0.96);       /* suaviza a transição */
}

/* MOBILE */
@media (max-width: 480px) {
    .item {
        width: 200px;
        scroll-snap-align: center;
    }

    .varal {
        padding-left: 50vw;
        padding-right: 50vw;
    }

    .varal-wrapper {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50%     { transform: rotate(1deg); }
}