
html {
    -webkit-text-size-adjust: 100%;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
}

.btn-disabled {
    background: #ccc !important;
    pointer-events: none; /* 讓它不能再點擊 */
    cursor: not-allowed;
    box-shadow: none !important;
}

/*.category-tab:hover,*/
.category-tab.active {
    color: #D4AF37;
}

/* Special Redeemed Category Tab */
.category-tab.redeemed {
    background: linear-gradient(120deg, rgba(212,175,55,0.95), #b79511);
    color: white;
    border-radius: 20px;
    border-bottom: none;
    padding: 8px 16px;
}

.category-tab.redeemed:hover,
.category-tab.redeemed.active {
    background: linear-gradient(120deg, rgba(212,175,55,0.95), #b79511);
    color: white;
    border-bottom: none;
    transform: translateY(-1px);
}

/* Mobile dropdown styles */
.mobile-category-dropdown {
    position: relative;
}


.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product filtering */
.product-hidden {
    display: none !important;
}

/* Redeemed product special styling */
.redeemed-product {
    position: relative;
    border: 2px solid #D4AF37;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.redeemed-product::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /*background: linear-gradient(45deg, #10b981, #059669, #047857);*/
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    animation: shimmer 3s ease-in-out infinite;
}

/* Verification Alert */
.verification-alert {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
    animation: gentle-pulse 3s infinite;
}

.staff-button {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.staff-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Success Gradient */
.success-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* Success Celebration Animation */
.celebration-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: success-pulse 2s infinite;
}

.ecoupon-card-noselect {
    position: relative;
    -webkit-mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
    mask: radial-gradient(circle 6px at 0px 50%, transparent 6px, black 7px), radial-gradient(circle 6px at 100% 50%, transparent 6px, black 7px);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}



/* Home - Split Card */
.split-card {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.6rem;
}

.split-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, calc(50% + 30px) 0, calc(50% - 30px) 100%, 0 100%);
}

.split-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(calc(50% + 30px) 0, 100% 0, 100% 100%, calc(50% - 30px) 100%);
}

.split-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.split-divider {
    position: absolute;
    left: 50%;
    top: -10%;
    width: 4px;
    height: 120%;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    transform: translateX(-50%) skewX(-12deg);
    z-index: 10;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.benefit-card {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 1rem;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 30%, transparent 100%);
    padding: 3rem 2rem 2rem;
}

.benefit-card:hover .overlay-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
}