/* RESET */
body, html { margin: 0; padding: 0; font-family: 'Quicksand', sans-serif; color: #5c3a3a; 
/* Cập nhật dòng dưới đây */
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), 
                url("hero-bg.webp") center/cover no-repeat fixed;}
.wrapper{
    max-width:1200px;
    margin:auto;
}
/* ÉP 3 PHẦN VÀO 1 MÀN HÌNH */
.first-screen {
 
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 10px 20px;
    box-sizing: border-box;
   
}
.process-section{
    margin-top: 15px;
}
/* TIÊU ĐỀ */
h1, h2, h3 { font-family: 'Dancing Script', cursive; color: #a64d4d; margin: 0; }
.hero-section h1 { font-size: 38px; text-align: center;   margin-bottom: 5px;}
.hero-section p { text-align: center; font-size: 14px; margin-top: 10px;  line-height: 1.6;}
.mini-title { text-align: center; font-size: 35px; margin-bottom: 10px; }

/* QUY TRÌNH ĐẶT THIỆP */

.process-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
	margin-bottom: 10px;
	
}
.step {
    background: white;
     padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.step-num {
   background: linear-gradient(135deg, #ff9a8b, #ff6a88);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.step p { margin: 0; font-size: 13px; line-height: 1.2;}
.step:hover,
.price-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
/* BẢNG GIÁ */
.price-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}
.price-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    border: 1px solid #f2dada;
    transition: 0.3s;
	 backdrop-filter: blur(5px);
}
.price-card.highlight {
    border: 2px solid #ff6a88;
    transform: scale(1.05);
}
.price-card h3 { font-size: 20px; margin-bottom: 5px; }
.desc { font-size: 14px; color: #5c3a3a; margin-bottom: 10px;  }
.price-box { background: #fff9f9; padding: 8px; border-radius: 8px; margin-bottom: 10px; }
.price-box p { margin: 4px 0; font-size: 13px; }
.price-box strong { color: #b53b3b; font-size: 15px; }

.btn-order {
    background: #b86a6a;
    color: white;
    border: none;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* PHẦN MẪU THIỆP (Bên dưới) */
.gallery { text-align: center;     margin-top: 10px;


}
.card-scroll {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card-scroll img { width: 100%; transition: transform 5s linear; }
.card-scroll:hover img { transform: translateY(calc(-100% + 350px)); }
.zalo-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
}

/* Container ảnh */
.card-scroll {
    position: relative; /* Cần thiết để tên mẫu định vị theo ảnh */
    overflow: hidden;
}

/* Ẩn tên mẫu ban đầu và tạo hiệu ứng Glassmorphism */
/* Ẩn tên mẫu ban đầu và tạo dải màu mờ như ảnh */
.template-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 25px 15px 15px 15px; /* Tăng padding top để dải gradient mượt hơn */
    
    /* Hiệu ứng dải màu đen mờ dần lên trên (như ảnh mẫu) */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    
    color: white; /* Chữ trắng cho nổi trên nền tối */
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    
    /* Hiệu ứng xuất hiện */
    transform: translateY(100%); 
    transition: transform 0.4s ease-out, opacity 0.4s ease;
    opacity: 0;
    z-index: 2;
}

/* Khi hover vào khung ảnh, tên mẫu trượt lên */
.card-scroll:hover .template-name {
    transform: translateY(0);
    opacity: 1;
}

/* Đảm bảo ảnh không bị che khuất quá nhiều */
.card-scroll img {
    display: block;
    z-index: 1;
}

/* Nâng cấp mục Zalo Contact cho đẹp hơn */
.zalo-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 106, 136, 0.2);
    box-shadow: 0 20px 40px rgba(255, 106, 136, 0.15); /* Đổ bóng tông hồng đào */
    padding: 10px;
}

.qr-container {
    border: 2px solid #ff99ac; /* Đổi viền đứt nét sang viền màu hồng cam đào */
    padding: 15px;
    background: white;
}

/* Hiệu ứng rung nhẹ cho logo Zalo để tạo sự chú ý */
.zalo-logo-header {
    animation: pulse-zalo 2s infinite;
}

@keyframes pulse-zalo {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


.btn-copy {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 55%, #ff99ac 100%) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f2dada;
}

.zalo-logo-header {
    width: 50px;
    height: 50px;
}

.header-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}

/* Body */
.card-body {
    display: flex;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* Container QR Code */
.qr-container {
    position: relative;
    border: 2px dashed #f2dada; /* Viền đứt nét */
    padding: 10px;
    border-radius: 12px;
}

.main-qr {
    width: 160px;
    height: 160px;
    display: block;
}

.zalo-mini-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

/* Container Thông tin */
.info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    background-color: #fcf1f1; /* Nền hồng nhạt */
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    font-weight: bold;
    color: #a64d4d; /* Màu hồng đậm hơn */
}

.info-value {
    font-size: 16px;
    font-weight: bold;
}

/* Nút bấm */
.btn-copy {
    background-color: #a64d4d; /* Màu đỏ rượu đồng bộ */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    text-transform: uppercase;
}

.btn-copy:hover {
    background-color: #b86a6a; /* Màu hồng khi hover */
}
/* Tạo hiệu ứng mờ ảo cho ảnh nền Hero */
.hero-section {
    position:relative;
	
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Hiệu ứng cuộn ảnh đứng yên sang trọng */
}

/* Thêm texture giấy cho bảng giá */
.price-card {
   background-image: url("pattern-bg.webp");
   background-size: 400px; /* Điều chỉnh kích thước họa tiết cho vừa mắt */
    padding: 20px;
    border-radius: 15px;
	box-shadow: 0 8px 32px rgba(166, 77, 77, 0.1);
}
/* ĐỊNH NGHĨA DẢI MÀU PEACH ECHO CHO NÚT BẤM */
/* Áp dụng cho nút Đặt Ngay và Copy Zalo */
.btn-order, .btn-copy, .hero-section button {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 55%, #ff99ac 100%) !important;
    color: white !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 106, 136, 0.3);
    transition: all 0.3s ease;
}

.btn-order:hover, .btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 136, 0.4);
    filter: brightness(1.05);
}

/* ĐIỀU CHỈNH RIÊNG CHO NÚT TRONG HERO (Nếu có) */
.hero-section button {
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 50px;
}

/* ĐIỀU CHỈNH NÚT ĐẶT HÀNG TRONG BẢNG GIÁ */
.btn-order {
    padding: 10px 25px;
    font-size: 13px;
    width: 80%; /* Cho nút cân đối hơn trong card */
    
}
/* HIỆU ỨNG HOA RƠI */
.petals-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Để không cản trở việc click nút */
}

.petal {
    position: absolute;
    background: #ffc0cb; /* Màu hồng nhạt */
    border-radius: 150% 0 150% 0;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translate(0, -10%) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translate(100px, 110%) rotate(360deg); opacity: 0; }
}

/* NÂNG CẤP NÚT BẤM VỚI PEACH ECHO GRADIENT */
.btn-order, .btn-copy {
    background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 55%, #ff99ac 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 106, 136, 0.3);
    transition: all 0.3s ease;
}

.btn-order:hover, .btn-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 106, 136, 0.5);
    filter: brightness(1.1);
}
/* PRELOADER STYLE */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Luôn nằm trên cùng */
    transition: opacity 0.5s ease;
}

#preloader p {
    font-family: 'Dancing Script', cursive;
    color: #a64d4d;
    font-size: 1.2rem;
    margin-top: 20px;
}

.heart {
    width: 50px;
    height: 50px;
    background-color: #ff6a88;
    position: relative;
    transform: rotate(45deg);
    animation: heartBeat 1.2s infinite;
}

.heart::before, .heart::after {
    content: "";
    width: 50px;
    height: 50px;
    background-color: #ff6a88;
    border-radius: 50%;
    position: absolute;
}

.heart::before { top: -25px; left: 0; }
.heart::after { left: -25px; top: 0; }

@keyframes heartBeat {
    0% { transform: rotate(45deg) scale(0.8); }
    5% { transform: rotate(45deg) scale(0.9); }
    10% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(0.8); }
    100% { transform: rotate(45deg) scale(0.8); }
}
/* ================= MOBILE ================= */
/* ================= MOBILE FIX ================= */
@media (max-width:768px){

/* bỏ ép 1 màn hình */
.first-screen{
    height:auto;
    gap:25px;
}
.process-section{
    margin-top: 0px;
}
/* ===== Quy trình đặt thiệp ===== */

.process-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Chia 2 hàng, mỗi hàng 2 cột */
        gap: 10px;
        padding: 0 10px;
    }

    .step {
        flex: none; /* Bỏ thuộc tính flex của PC */
        width: 100%;
        box-sizing: border-box;
        padding: 12px 8px;
        flex-direction: column; /* Chuyển icon lên trên cho thoáng */
        text-align: center;
    }

    .step-num {
        margin-bottom: 5px;
    }

    .step p {
        font-size: 12px;
    }

/* ===== BẢNG GIÁ ===== */
.price-grid{
    flex-direction:column;
    align-items:center;
    gap:18px;
}

.price-card{
    width:92%;
    max-width:360px;
}

.price-card.highlight{
    transform:none;
}

/* ===== MẪU THIỆP ===== */
.gallery{
     
}

.swiper{
    max-width:350px;
    margin:auto;
}

/* ===== ZALO CONTACT ===== */
.card-body{
    flex-direction:column;
    text-align:center;
}

.qr-container{
    margin:auto;
}

.info-container{
    width:100%;
}

.info-row{
    justify-content:space-between;
}

.btn-copy{
    width:100%;
}

}
/* ===== CÁNH HOA RƠI ===== */

.petals-container{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
    overflow:hidden;
}

.petal{
    position:absolute;
    top:-50px;
    width:18px;
    height:18px;
    background: radial-gradient(circle at 30% 30%, #ffd1dc, #ff9ab3);
    border-radius: 60% 40% 60% 40%;
    opacity:0.8;
    animation: fall linear forwards;
}

@keyframes fall{
    0%{
        transform: translateY(-50px) rotate(0deg);
        opacity:0;
    }

    10%{
        opacity:0.9;
    }

    100%{
        transform: translateY(110vh) rotate(360deg);
        opacity:0;
    }
}

/* ===== PREMIUM EFFECT ===== */

.step,
.price-card{
    backdrop-filter: blur(6px);
    transition: all 0.35s ease;
}

.step:hover,
.price-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Glow nhẹ cho gói nổi bật */

.price-card.highlight{
    box-shadow: 0 10px 35px rgba(255,106,136,0.35);
}
/* ===== TEXT SHIMMER ===== */

.hero-section h1{
    background: linear-gradient(
        90deg,
    #a64d4d,
#954545,
#843d3d,
#743535,
#632e2e,
#532626

    );

    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shimmer 4s linear infinite;
}

@keyframes shimmer{
    0%{
        background-position: 0% center;
    }

    100%{
        background-position: 200% center;
    }
}
/* ===== SPARKLE EFFECT ===== */

.sparkle{
    position:absolute;
    width:6px;
    height:6px;
    background:white;
    border-radius:50%;
    opacity:0;
    box-shadow:
        0 0 6px white,
        0 0 12px #ffd1dc,
        0 0 20px #ff7aa2;

    animation: sparkleAnim 2s linear forwards;
}

@keyframes sparkleAnim{

    0%{
        transform: scale(0);
        opacity:0;
    }

    50%{
        transform: scale(1);
        opacity:1;
    }

    100%{
        transform: scale(0);
        opacity:0;
    }
}
