/* ========================================
   DivaRoza Wishlist — Страница избранного
   ======================================== */

.page-template-page-wishlist .wishlist-page {
    padding: 0 0 64px;
}

/* Заголовок */
.page-template-page-wishlist .wishlist-hero {
    background: linear-gradient(170deg, #FFF5F5 0%, #FFEEF2 40%, #FDE8EC 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.page-template-page-wishlist .wishlist-hero-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.page-template-page-wishlist .wishlist-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.page-template-page-wishlist .wishlist-hero-subtitle {
    font-size: 15px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.page-template-page-wishlist .wishlist-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Сетка */
.page-template-page-wishlist .wishlist-grid-section {
    padding: 48px 0 64px;
    background: var(--color-light);
}

.page-template-page-wishlist .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .page-template-page-wishlist .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .page-template-page-wishlist .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .page-template-page-wishlist .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Пустое */
.page-template-page-wishlist .wishlist-empty {
    text-align: center;
    padding: 64px 20px;
}

.page-template-page-wishlist .wishlist-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-template-page-wishlist .wishlist-empty p {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.page-template-page-wishlist .wishlist-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-template-page-wishlist .wishlist-back {
    font-size: 14px;
    color: var(--color-gray);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-template-page-wishlist .wishlist-back:hover {
    color: var(--color-primary);
}

.page-template-page-wishlist .wishlist-clear {
    font-size: 13px;
    color: var(--color-gray-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.page-template-page-wishlist .wishlist-clear:hover {
    color: var(--color-primary);
}

/* ===== КАРТОЧКИ (дублируем стили из showcase.css) ===== */
.page-template-page-wishlist .petal-card {
    background: var(--color-white); border-radius: var(--radius-md); overflow: visible;
    display: flex; flex-direction: column; position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    transform-origin: center bottom; height: 100%;
}
.page-template-page-wishlist .petal-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); z-index: 2; }
.page-template-page-wishlist .petal-card-image { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-light); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.page-template-page-wishlist .petal-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.page-template-page-wishlist .petal-card:hover .petal-card-image img { transform: scale(1.08); }
.page-template-page-wishlist .petal-badge { position: absolute; top: 10px; left: 10px; background: #FF6B8A; color: var(--color-white); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; font-size: 16px; line-height: 1; }
.page-template-page-wishlist .petal-category { position: absolute; bottom: 8px; left: 8px; background: rgba(30,30,30,0.7); backdrop-filter: blur(6px); color: var(--color-white); font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: var(--radius-xs); letter-spacing: 0.3px; text-transform: uppercase; z-index: 2; }
.page-template-page-wishlist .petal-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; justify-content: space-between; }
.page-template-page-wishlist .petal-card-title { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--color-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; min-height: 34px; }
.page-template-page-wishlist .petal-card-title a { color: inherit; }
.page-template-page-wishlist .petal-card-title a:hover { color: var(--color-primary); }
.page-template-page-wishlist .petal-card-price { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-dark); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-template-page-wishlist .petal-price-old { font-size: 14px; color: var(--color-gray-light); text-decoration: line-through; font-weight: 400; margin-right: 4px; }
.page-template-page-wishlist .petal-price-new { color: var(--color-primary); }
.page-template-page-wishlist .petal-card-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 8px 10px; background: var(--color-primary) !important; color: var(--color-white) !important; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 12px; font-weight: 600; transition: all var(--transition-base); margin-top: auto; border: none; cursor: pointer; text-decoration: none !important; box-shadow: 0 2px 8px rgba(230,84,118,0.15); }
.page-template-page-wishlist .petal-card-btn:hover { background: var(--color-primary-hover) !important; box-shadow: 0 4px 14px rgba(230,84,118,0.3); transform: translateY(-1px); color: var(--color-white) !important; }
.page-template-page-wishlist .petal-card-btn.in-cart { background: var(--color-green) !important; box-shadow: 0 2px 8px rgba(91,140,90,0.2) !important; padding: 0 !important; cursor: default; }
.page-template-page-wishlist .petal-card-btn.in-cart:hover { background: var(--color-green) !important; transform: none !important; box-shadow: 0 2px 8px rgba(91,140,90,0.2) !important; }
.page-template-page-wishlist .qty-controls { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; }
.page-template-page-wishlist .qty-btn-card { width: 32px; height: 36px; background: transparent; border: none; color: var(--color-white); font-size: 18px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); border-radius: var(--radius-sm); line-height: 1; }
.page-template-page-wishlist .qty-btn-card:hover { background: rgba(255,255,255,0.2); }
.page-template-page-wishlist .qty-value-card { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: var(--color-white); line-height: 1; user-select: none; }
.page-template-page-wishlist .petal-card-btn.loading { opacity: 0.7; pointer-events: none; }
.page-template-page-wishlist .added_to_cart.wc-forward { display: none !important; }

/* Спиннер */
.page-template-page-wishlist .showcase-loader { text-align: center; padding: 32px 0; }
.page-template-page-wishlist .flower-spinner { position: relative; width: 48px; height: 48px; margin: 0 auto; }
.page-template-page-wishlist .flower-spinner .petal { position: absolute; width: 16px; height: 16px; background: var(--color-primary); border-radius: 50% 0 50% 0; top: 50%; left: 50%; opacity: 0.4; animation: flowerSpin 1.5s ease-in-out infinite; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(1) { transform: translate(-50%,-50%) rotate(0deg) translateY(-14px); animation-delay: 0s; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(2) { transform: translate(-50%,-50%) rotate(60deg) translateY(-14px); animation-delay: 0.1s; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(3) { transform: translate(-50%,-50%) rotate(120deg) translateY(-14px); animation-delay: 0.2s; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(4) { transform: translate(-50%,-50%) rotate(180deg) translateY(-14px); animation-delay: 0.3s; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(5) { transform: translate(-50%,-50%) rotate(240deg) translateY(-14px); animation-delay: 0.4s; }
.page-template-page-wishlist .flower-spinner .petal:nth-child(6) { transform: translate(-50%,-50%) rotate(300deg) translateY(-14px); animation-delay: 0.5s; }
@keyframes wishlistFlowerSpin { 0%, 100% { opacity: 0.3; transform: rotate(0deg) translateY(-14px) scale(0.8); } 50% { opacity: 1; transform: rotate(180deg) translateY(-14px) scale(1.2); } }
.page-template-page-wishlist .flower-spinner .petal { animation-name: wishlistFlowerSpin; }

