/* Gift Tier Styling */

/* Cart Page Gift Section */
.gift__tier--section {
    background: #f8f9fa;
}

.cart__gift--container {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Gift Item Link */
.gift__item--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.gift__item--link:hover {
    text-decoration: none;
    color: inherit;
}

.gift__item--link:hover .gift__item--card {
    transform: translateY(-5px);
}

.cart__gift--celebration {
    font-size: 1.6rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 5px;
}

.gift__item--card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.gift__item--card:hover {
    border-color: #ffc107;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    transform: translateY(-3px);
}

.gift__item--thumbnail {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.gift__item--thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gift__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gift__item--content {
    padding: 15px;
}

.gift__item--title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.gift__item--format {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.gift__item--quantity {
    font-size: 1.4rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 5px;
}

.gift__item--tier {
    font-size: 1.2rem;
    color: #28a745;
    margin: 0;
}

/* Tier Encouragement Section */
.cart__tier--encouragement {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.tier__encourage--title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tier__encourage--text {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tier__encourage--text strong {
    color: #ffc107;
}

.tier__progress--bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tier__progress--fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff6b6b 100%);
    transition: width 0.5s ease;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.5);
}

.tier__progress--label {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.tier__complete {
    padding: 20px;
}

.tier__complete--title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tier__complete--text {
    font-size: 1.8rem;
    opacity: 0.95;
}

/* Minicart Gift Styles */
.minicart__gifts {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.minicart__gifts--title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.minicart__gift--item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.minicart__gift--item-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateX(5px);
}

.minicart__gift--item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ffc107;
    transition: all 0.3s ease;
}

.minicart__gift--item-link:hover .minicart__gift--item {
    background: #ffeaa7;
    border-color: #ffb300;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.minicart__gift--thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.minicart__gift--thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.gift__mini--badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.minicart__gift--text {
    flex: 1;
}

.minicart__gift--text h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
}

.minicart__gift--text span {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Minicart Tier Encouragement */
.minicart__tier--encourage {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-top: 15px;
}

.tier__encourage--mini-text {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.5;
}

.tier__encourage--mini-text strong {
    color: #ffc107;
}

.tier__progress--mini {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.tier__progress--mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff6b6b 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Checkout Page Gift Styles */
.gift__checkout--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.gift__checkout--link:hover {
    text-decoration: none;
    color: inherit;
}

.gift__checkout--card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gift__checkout--link:hover .gift__checkout--card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.2);
    border-color: #28a745 !important;
}

.gift__checkout--link:hover .gift__checkout--card h6 {
    color: #28a745;
}

/* Responsive Styles */
@media only screen and (max-width: 767px) {
    .cart__gift--celebration {
        font-size: 1.4rem;
        padding: 12px;
    }

    .gift__item--thumbnail img {
        height: 180px;
    }

    .gift__item--title {
        font-size: 1.4rem;
    }

    .tier__encourage--title {
        font-size: 2rem;
    }

    .tier__encourage--text {
        font-size: 1.5rem;
    }

    .tier__progress--bar {
        height: 25px;
    }

    .tier__complete--title {
        font-size: 2.2rem;
    }

    .tier__complete--text {
        font-size: 1.5rem;
    }

    .minicart__gift--thumbnail {
        width: 50px;
        height: 50px;
    }

    .minicart__gift--text h5 {
        font-size: 1.3rem;
    }
}

/* Animation for gift cards */
@keyframes giftFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift__item--card {
    animation: giftFadeIn 0.5s ease forwards;
}

.gift__item--card:nth-child(1) { animation-delay: 0.1s; }
.gift__item--card:nth-child(2) { animation-delay: 0.2s; }
.gift__item--card:nth-child(3) { animation-delay: 0.3s; }
.gift__item--card:nth-child(4) { animation-delay: 0.4s; }

/* Gift Tier Information Section (All Tiers Display) */
.gift__tier--info--section {
    background: #f8f9fa;
    padding: 40px 0;
}

.tier__info--card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tier__info--card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.tier__info--card.tier__unlocked {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
}

.tier__info--card.tier__unlocked::before {
    background: #28a745;
    width: 4px;
}

.tier__info--card.tier__locked {
    border-color: #dee2e6;
    background: #fff;
}

.tier__info--card.tier__locked::before {
    background: #dee2e6;
}

.tier__info--card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tier__info--card.tier__unlocked:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.tier__info--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tier__info--name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

.tier__info--threshold {
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    background: #f0f4ff;
    padding: 8px 16px;
    border-radius: 8px;
}

.tier__info--card.tier__unlocked .tier__info--threshold {
    color: #28a745;
    background: #d4edda;
}

.tier__info--status {
    margin-bottom: 15px;
}

.tier__status--badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier__status--unlocked {
    background: #28a745;
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.tier__status--locked {
    background: #ffc107;
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.tier__info--gifts {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tier__info--gifts-count {
    font-size: 1.3rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.tier__info--card.tier__unlocked .tier__info--gifts-count {
    color: #28a745;
    font-weight: 600;
}

/* Minicart Tier Info Styles */
.minicart__all-tiers-info {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.minicart__tiers-info--title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.minicart__tiers-info--list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.minicart__tier-info--item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.minicart__tier-info--item.tier__unlocked {
    background: #d4edda;
    border-color: #28a745;
}

.minicart__tier-info--item.tier__locked {
    background: #fff3cd;
    border-color: #ffc107;
}

.minicart__tier-info--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.minicart__tier-info--name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.minicart__tier-info--threshold {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    background: #f0f4ff;
    padding: 4px 10px;
    border-radius: 6px;
}

.minicart__tier-info--item.tier__unlocked .minicart__tier-info--threshold {
    color: #28a745;
    background: #c3e6cb;
}

.minicart__tier-info--hint {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.minicart__tier-info--hint.tier__unlocked--text {
    color: #28a745;
    font-weight: 600;
}

/* Responsive Styles for Tier Info */
@media only screen and (max-width: 767px) {
    .tier__info--card {
        padding: 20px;
    }

    .tier__info--name {
        font-size: 1.5rem;
    }

    .tier__info--threshold {
        font-size: 1.4rem;
        padding: 6px 12px;
    }

    .tier__status--badge {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    .minicart__tier-info--name {
        font-size: 1.2rem;
    }

    .minicart__tier-info--threshold {
        font-size: 1.1rem;
        padding: 3px 8px;
    }

    .minicart__tier-info--hint {
        font-size: 1rem;
    }
}

