/* ========================================
   COMBO / GIFT SETS - ALL STYLES
   Tách riêng từ style.css để dễ quản lý
   ======================================== */

/* ========================================
   Gift Sets Section - Old Style
   ======================================== */
.gift-sets {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.gift-sets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="2" fill="rgba(212,175,55,0.1)"/><circle cx="150" cy="150" r="2" fill="rgba(212,175,55,0.1)"/></svg>');
    pointer-events: none;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.gift-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-normal);
}

.gift-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gift-card.featured {
    border: 2px solid var(--gold);
    transform: scale(1.05);
}

.gift-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.gift-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gift-card:hover .gift-image img {
    transform: scale(1.1);
}

.gift-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary-green-dark);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.gift-info {
    padding: 25px;
    text-align: center;
}

.gift-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 15px;
}

.gift-contents {
    margin-bottom: 20px;
}

.gift-contents li {
    color: var(--white);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gift-contents li:last-child {
    border-bottom: none;
}

.gift-contents li i {
    color: var(--gold);
}

.gift-price {
    margin-bottom: 20px;
}

.gift-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
}

.btn-gift {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold);
    color: var(--primary-green-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.btn-gift:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* ========================================
   Gift Sets K5 Style - Premium Design
   ======================================== */
.gift-sets-k5 .section-title-elegant.white {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.gift-sets-k5 .section-title-elegant.white::after {
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    height: 4px;
}

.gift-sets-k5 {
    padding: 20px 0;
    /* Reduced padding from 80px */
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    position: relative;
    overflow: hidden;
}

.gift-sets-k5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Title - Golden Elegant */
.gift-sets-k5 .section-title-elegant.white {
    color: #D4A520;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    /* Reduced margin from 50px */
    text-align: center;
    position: relative;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.gift-sets-k5 .section-title-elegant.white::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Grid Layout - Optimized columns */
.gifts-grid-k5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

/* Luxury Card Design */
/* Luxury Card Design - Redesigned for Premium Feel */
.gift-card-k5 {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    will-change: transform;
}

/* Elegant Hover Effect - Gold border and subtle lift */
.gift-card-k5:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
    /* Highlight with Gold color on hover */
}

/* Image Container with Gradient Background */
/* Image Container - Minimized aspect ratio to fit banners better */
.gift-image-k5 {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* Tighter ratio for horizontal banners */
    overflow: hidden;
    background: #f9f9f9;
}

/* Remove alternating backgrounds if any remain */
.gift-card-k5:nth-child(2n) .gift-image-k5,
.gift-card-k5:nth-child(3n) .gift-image-k5 {
    background: #fff;
}

.gift-image-k5 img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill Entire Space */
    object-position: center;
    transition: all 0.6s ease;
    will-change: transform;
    padding: 0;
    /* Fully fill to see banner details */
}

.gift-card-k5:hover .gift-image-k5 img {
    transform: translate(-50%, -50%) scale(1.08);
    /* Subtle zoom on hover */
}

.gift-card-k5:hover .gift-image-k5 img {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Overlay - Subtle and Elegant */
.gift-image-k5 .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.gift-card-k5:hover .gift-image-k5 .product-overlay {
    opacity: 1;
    visibility: visible;
}

/* Golden Button - Luxury Style */
.gift-card-k5 .btn-view {
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #FFD700 100%);
    color: #8B0000;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    border: 2px solid #FFD700;
}

.gift-card-k5 .btn-view i {
    font-size: 14px;
}

.gift-card-k5 .btn-view:hover {
    background: #ffffff;
    color: #8B0000;
    border-color: #8B0000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Badge */
.gift-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #D32F2F;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gift-badge.new {
    background: #4CAF50;
}

/* Info Section - Super Compact */
.gift-info-k5 {
    padding: 6px 8px;
    /* Extremely tight padding */
    text-align: center;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

/* Logo/Brand Corner - Optional Decoration */
/* Logo/Brand Corner - Removed for cleaner look */
.gift-info-k5::before {
    display: none;
}

/* Name Wrapper with Icon */
.gift-name-wrapper {
    margin-bottom: 0px;
    /* Removed margin */
    min-height: auto;
    display: block;
    position: relative;
}

/* Golden Typography for Product Name */
/* Golden Typography for Product Name */
.gift-info-k5 h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    /* Slightly smaller for single line fit */
    font-weight: 700;
    color: #1B5E20;
    /* Deep Green for professional look */
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Force 1 line */
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.gift-card-k5:hover .gift-info-k5 h3 {
    color: #d4af37;
    /* Turn Gold on hover */
}

/* Product List */
.gift-info-k5 .gift-contents {
    text-align: left;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
    padding: 0 5px;
}

.gift-info-k5 .gift-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gift-info-k5 .gift-contents li {
    padding: 3px 0;
    position: relative;
    padding-left: 15px;
}

.gift-info-k5 .gift-contents li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* Luxury Price Section */
/* Luxury Price Section - Redesigned */
.gift-price-k5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    width: 100%;
    padding: 0;
    border: none;
}

.gift-price-k5 .price-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gift-price-k5 .old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.gift-price-k5 .discount-badge {
    background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.25);
    position: relative;
    top: -1px;
}

.gift-price-k5 .current-price {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #B71C1C;
    /* Deep Red */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    display: block;
}

.gift-card-k5:hover .gift-price-k5 .current-price {
    transform: scale(1.1);
    color: #D32F2F;
}

/* ========================================
   Modal Gallery Styles
   ======================================== */

/* Main Image Area in Modal */
.gift-modal-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Main Image Styling */
#giftModalImg {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: opacity 0.3s ease;
}

/* Gallery Container */
.gift-modal-gallery-container {
    width: 100%;
    margin-top: 0;
}

/* Thumbnails Strip */
.modal-thumbs-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    justify-content: center;
    scrollbar-width: thin;
}

.modal-thumbs-strip::-webkit-scrollbar {
    height: 4px;
}

.modal-thumbs-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-thumb {
    width: 65px;
    height: 65px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.modal-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.modal-thumb.active {
    border-color: var(--gold);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Modal Item List */
.modal-item-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    border-top: 1px solid #eee;
}

.modal-item-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.modal-item-row:hover {
    background: #fdfdfd;
}

.modal-item-thumb {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.modal-item-text {
    flex: 1;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.modal-item-qty {
    font-size: 13px;
    color: #888;
    margin-left: auto;
    white-space: nowrap;
    font-style: italic;
}

/* ========================================
   Gift Cards Responsive Design
   ======================================== */

/* Large Tablets & Small Desktops (1200px - 1366px) */
@media (max-width: 1366px) {
    .gifts-grid-k5 {
        gap: 20px;
    }

    .gift-info-k5 h3 {
        font-size: 16px;
    }

    .gift-price-k5 .current-price {
        font-size: 15px;
    }
}

/* Tablets (992px - 1199px) - 3 columns */
@media (max-width: 1199px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .gift-sets-k5 {
        padding: 60px 0;
    }

    .gift-card-k5 .btn-view {
        font-size: 12px;
        padding: 10px 24px;
    }
}

/* Small Tablets (768px - 991px) - 3 columns */
@media (max-width: 991px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .gift-info-k5 {
        padding: 18px 15px;
    }

    .gift-info-k5 h3 {
        font-size: 15px;
    }

    .gift-price-k5 {
        padding: 8px 12px;
    }

    .gift-price-k5 .current-price {
        font-size: 14px;
    }

    .gift-card-k5:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Mobile Landscape & Large Phones (576px - 767px) - 2 columns */
@media (max-width: 767px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gift-sets-k5 {
        padding: 50px 0;
    }

    .gift-sets-k5 .section-title-elegant.white {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .gift-card-k5 {
        border-radius: 12px;
    }

    .gift-image-k5 {
        padding-top: 80%;
    }

    .gift-info-k5 {
        padding: 16px 12px;
        gap: 8px;
    }

    .gift-name-wrapper {
        min-height: 48px;
    }

    .gift-info-k5 h3 {
        font-size: 14px;
        line-height: 1.3;
    }

    .gift-price-k5 {
        padding: 7px 10px;
    }

    .gift-price-k5 .current-price {
        font-size: 13px;
    }

    .gift-card-k5 .btn-view {
        font-size: 10px;
        padding: 8px 18px;
        letter-spacing: 0.5px;
    }

    .gift-card-k5:hover {
        transform: translateY(-5px);
    }

    .gift-card-k5::before {
        display: none;
    }
}

/* Mobile Portrait (< 576px) - 1 column */
@media (max-width: 575px) {
    .gifts-grid-k5 {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 40px auto 0;
    }

    .gift-sets-k5 {
        padding: 40px 0;
    }

    .gift-sets-k5 .section-title-elegant.white {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .gift-card-k5 {
        max-width: 100%;
        box-shadow:
            0 3px 6px rgba(0, 0, 0, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .gift-image-k5 {
        padding-top: 75%;
    }

    .gift-info-k5 {
        padding: 20px 16px;
        gap: 10px;
    }

    .gift-name-wrapper {
        min-height: 52px;
    }

    .gift-info-k5 h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .gift-price-k5 {
        padding: 10px 14px;
    }

    .gift-price-k5 .current-price {
        font-size: 15px;
    }

    .gift-card-k5 .btn-view {
        font-size: 11px;
        padding: 10px 24px;
    }

    .gift-card-k5:hover .gift-image-k5 img {
        transform: scale(1.05);
    }
}

/* Responsive Grid Helpers */
@media (max-width: 1200px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gifts-grid-k5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gift-info-k5 h3 {
        font-size: 14px;
        min-height: 40px;
    }

    .gift-price-k5 .current-price {
        font-size: 16px;
    }
}

/* Refined Gift Sets Styles (Match Products) */
.gift-image-k5 .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
}

.gift-card-k5:hover .gift-image-k5 .product-overlay {
    opacity: 1;
    visibility: visible;
}

.gift-image-k5 .product-overlay .btn-view {
    background: var(--gold);
    color: var(--primary-green-dark);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gift-card-k5:hover .gift-image-k5 .product-overlay .btn-view {
    transform: translateY(0);
}

.gift-card-k5:hover .gift-image-k5 .product-overlay .btn-view:hover {
    background: var(--white);
    color: var(--gold);
}

.gift-info-k5 {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}