/* ===== Gift Page – Premium + Animations ===== */

.page-title {
    padding: 56px 0 36px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}
.page-title h1 {
    font: 700 44px/1.15 'Fraunces', serif;
    color: var(--ink);
    margin-bottom: 12px;
}
.page-title p {
    color: var(--grey);
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}
.tab {
    flex: 1;
    min-width: 180px;
    text-align: left;
    padding: 18px 22px;
    background: #f8f7ff;
    border: 2px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108,76,241,0.08), rgba(162,107,255,0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tab:hover::before {
    opacity: 1;
}
.tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 76, 241, 0.12);
}
.tab b {
    display: block;
    font: 700 18px 'Fraunces', serif;
    margin-bottom: 3px;
    position: relative;
}
.tab small {
    color: var(--grey);
    font-size: 13px;
    position: relative;
}
.tab.active {
    background: #fff;
    border-color: var(--violet);
    box-shadow: 0 8px 24px rgba(108, 76, 241, 0.15);
    transform: translateY(-2px);
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 28px;
}
.chip {
    padding: 9px 20px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 40px;
    cursor: pointer;
    font: 600 14px inherit;
    color: var(--ink);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chip:hover {
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-2px);
}
.chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 6px 16px rgba(28, 25, 70, 0.2);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

/* Cards – Premium Gift Card look */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(28, 25, 70, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }
.card:nth-child(6) { animation-delay: 0.40s; }

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(28, 25, 70, 0.14);
}
.card[hidden] {
    display: none !important;
}

.card-top {
    height: 160px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.card-top::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    top: -60px;
    right: -50px;
}
.card-top small {
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 0.4px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.card-top b {
    font: 700 28px/1.1 'Fraunces', serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    font-size: 14px;
    color: var(--grey);
    background: #fff;
}
.card-bottom .btn.small {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.25s ease;
}
.card-bottom .btn.small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(240, 82, 79, 0.3);
}

/* Gradients */
.c1 .card-top { background: linear-gradient(135deg, #6c4cf1 0%, #a26bff 100%); }
.c2 .card-top { background: linear-gradient(135deg, #f0524f 0%, #ff9a6b 100%); }
.c3 .card-top { background: linear-gradient(135deg, #0f8b8d 0%, #53c8a8 100%); }
.c4 .card-top { background: linear-gradient(135deg, #1c1946 0%, #4a3fa8 100%); }
.c5 .card-top { background: linear-gradient(135deg, #c9974b 0%, #ecc47e 100%); }

/* Panel fade */
.panel {
    animation: fadeIn 0.4s ease;
}

/* Keyframes */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .page-title h1 { font-size: 32px; }
    .tabs { gap: 10px; }
    .tab { min-width: 140px; padding: 14px 16px; }
    .tab b { font-size: 16px; }
    .card-top { height: 140px; }
    .card-top b { font-size: 24px; }
}