/**
 * Thunder Vape Homepage Styles
 * Optimized CSS for modern, responsive, and performant homepage design
 */

/* Logo Section Styles */
.logo-section {
    padding: 30px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.logo-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-scroll {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: logo-scroll 30s linear infinite;
    width: fit-content;
}

.logo-item {
    flex-shrink: 0;
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.logo-item img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) brightness(1.1);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1.2);
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.logo-wrapper:hover .logo-scroll {
    animation-play-state: paused;
}

/* Responsive Logo Section */
@media (max-width: 768px) {
    .logo-section {
        padding: 20px 0;
    }

    .logo-scroll {
        gap: 30px;
        animation-duration: 20s;
    }

    .logo-item {
        height: 50px;
        padding: 8px;
    }

    .logo-item img {
        max-height: 35px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        padding: 15px 0;
    }

    .logo-scroll {
        gap: 20px;
        animation-duration: 15s;
    }

    .logo-item {
        height: 45px;
        padding: 6px;
    }

    .logo-item img {
        max-height: 30px;
        max-width: 80px;
    }
}

/* Hero Section Positioning */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* LINE Contact Button Styles */
.line-contact-btn {
    background: linear-gradient(135deg, #00b900, #00a300) !important;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.line-contact-btn:hover {
    background: linear-gradient(135deg, #00a300, #009000) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 185, 0, 0.4);
}

.line-contact-btn i {
    margin-right: 8px;
    font-size: 1.2em;
    animation: line-pulse 2s infinite;
}

.line-contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.line-contact-btn:hover::before {
    left: 100%;
}

@keyframes line-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Promotion styles for featured products */
.product-card {
    position: relative;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--thunder-yellow);
    margin-bottom: 12px;
    line-height: 1.4;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2rem; /* 3 lines * line-height */
    max-height: 4.2rem;
}

.promotion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: promotion-pulse 2s infinite;
}

.promotion-badge i {
    margin-right: 4px;
    animation: fire-flicker 1.5s infinite alternate;
}

@keyframes promotion-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
    }
}

@keyframes fire-flicker {
    0% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(2deg);
    }
}

.promotion-price-section {
    margin-bottom: 15px;
}

.original-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.strikethrough {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.discount-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.product-price.promotion-active {
    color: #ff4757;
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

/* New Vape Container Styles */
.vape-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 50%;
    z-index: 1;
}

.vape-product-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: vape-float 3s ease-in-out infinite;
}

.vape-hero-image {
    max-height: 500px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(246, 194, 67, 0.3));
    transition: all 0.3s ease;
}

.vape-hero-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(246, 194, 67, 0.5));
}

.vape-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(246, 194, 67, 0.2) 0%, rgba(246, 194, 67, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.floating-lightning {
    position: absolute;
    top: 20%;
    right: -20%;
    color: #f6c243;
    font-size: 2rem;
    animation: lightning-float 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(246, 194, 67, 0.8);
}

@keyframes vape-float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes lightning-float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 1;
    }
}

/* Responsive adjustments for vape container */
@media (max-width: 1200px) {
    .vape-container {
        width: 45%;
    }

    .vape-hero-image {
        max-height: 400px;
    }
}

@media (max-width: 992px) {
    .vape-container {
        width: 40%;
    }

    .vape-hero-image {
        max-height: 320px;
    }

    .floating-lightning {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .vape-container {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 30px;
    }

    .vape-hero-image {
        max-height: 260px;
        right: -7rem;
        position: absolute;
    }

    .floating-lightning {
        top: 15%;
        right: -15%;
        font-size: 1.2rem;
    }

    /* Mobile shop button styles */
    .shop-btn {
        padding: 13px 10px !important;
    }
}

@media (max-width: 480px) {
    .floating-lightning {
        display: none;
    }

    /* Extra small mobile shop button styles */
    .shop-btn {
        padding: 12px 10px !important;
    }
}

/* Fallback CSS Vape Device Styles */
.vape-device-fallback {
    width: 80px;
    height: 300px;
    position: relative;
    transform: rotate(-15deg);
}

.vape-top {
    width: 100%;
    height: 20%;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 40px 40px 15px 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vape-body {
    width: 100%;
    height: 80%;
    background: linear-gradient(135deg, #f6c243, #f39c12);
    border-radius: 15px 15px 25px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(246, 194, 67, 0.4);
}

.lightning-bolt {
    position: absolute;
    top: 20%;
    font-size: 1.5rem;
    color: #1a1a1a;
    animation: lightning-pulse 1.5s ease-in-out infinite;
}

.vape-logo {
    font-family: "Arial Black", sans-serif;
    font-weight: 900;
    color: #1a1a1a;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.vape-logo small {
    font-size: 0.6rem;
    font-weight: 700;
}

@keyframes lightning-pulse {
    0%,
    100% {
        text-shadow: 0 0 5px rgba(26, 26, 26, 0.5);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(26, 26, 26, 0.8);
        transform: scale(1.1);
    }
}

/* Promotion Products Section Styles */
.promotions-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.promotions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(246, 194, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 71, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.promotions-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ff4757;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(255, 71, 87, 0.3);
    position: relative;
    z-index: 1;
}

.promotions-title i {
    color: #f6c243;
    animation: fire-flicker 1.5s infinite alternate;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.promotion-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 71, 87, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.promotion-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 71, 87, 0.2);
}

.promotion-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 194, 67, 0.05) 0%, rgba(255, 71, 87, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-card:hover::before {
    opacity: 1;
}

.promotion-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px;
}

.promotion-flash-badge {
    background: linear-gradient(135deg, #f6c243, #f39c12);
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(246, 194, 67, 0.4);
    animation: promotion-pulse 2s infinite;
}

.promotion-flash-badge i {
    margin-right: 5px;
    animation: lightning-flash 1s infinite alternate;
}

.promotion-discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 10px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    animation: discount-bounce 2s infinite;
}

.promotion-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promotion-card:hover .promotion-image img {
    transform: scale(1.1);
}

.promotion-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 3rem;
}

.promotion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-card:hover .promotion-overlay {
    opacity: 1;
}

.promotion-lightning {
    color: #f6c243;
    font-size: 2rem;
    animation: lightning-glow 1.5s infinite alternate;
}

.promotion-content {
    padding: 10px;
}

.promotion-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.9rem; /* 3 lines * line-height */
    max-height: 3.9rem;
}

.promotion-category {
    margin-bottom: 15px;
}

.promotion-category-link {
    display: inline-flex;
    align-items: center;
    background: rgba(246, 194, 67, 0.1);
    color: #f6c243;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(246, 194, 67, 0.2);
}

.promotion-category-link:hover {
    background: rgba(246, 194, 67, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(246, 194, 67, 0.2);
}

.promotion-category-link i {
    margin-right: 5px;
    font-size: 10px;
}

.promotion-price-section {
    margin-bottom: 20px;
}

.promotion-original-price {
    margin-bottom: 5px;
}

.strikethrough-price {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
    font-weight: 500;
}

.promotion-sale-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sale-price {
    color: #ff4757;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.you-save {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-timer {
    background: linear-gradient(135deg, rgba(246, 194, 67, 0.1), rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(246, 194, 67, 0.3);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.timer-label {
    color: #f6c243;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-label i {
    margin-right: 5px;
}

.timer-display {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: "Courier New", monospace;
}

.timer-display span {
    color: #ff4757;
    font-size: 18px;
}

.promotion-actions {
    text-align: center;
}

.promotion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.promotion-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}

.promotion-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.promotion-btn:hover::before {
    left: 100%;
}

.view-all-promotions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f6c243, #f39c12);
    color: #1a1a1a;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(246, 194, 67, 0.3);
}

.view-all-promotions-btn:hover {
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(246, 194, 67, 0.5);
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6c243 0%, #f39c12 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.contact-title i {
    color: #1a1a1a;
    animation: contact-pulse 2s infinite alternate;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(246, 194, 67, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(246, 194, 67, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(246, 194, 67, 0.2);
    border-color: rgba(246, 194, 67, 0.3);
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 194, 67, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: contact-icon-glow 3s ease-in-out infinite;
}

@keyframes contact-icon-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(246, 194, 67, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(246, 194, 67, 0.5);
    }
}

.line-card .contact-icon {
    background: linear-gradient(135deg, #00b900, #00a300);
}

.phone-card .contact-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.facebook-card .contact-icon {
    background: linear-gradient(135deg, #1877f2, #1864d9);
}

.contact-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover .contact-icon::before {
    left: 100%;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.contact-method {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-id {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.line-btn {
    background: linear-gradient(135deg, #00b900, #00a300);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3);
}

.line-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 185, 0, 0.5);
}

.phone-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.phone-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877f2, #1864d9);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.facebook-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

@keyframes contact-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Contact Responsive */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contact-methods {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        max-width: 100% !important;
    }

    .contact-card {
        flex: none;
        width: auto;
        min-width: 80px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
        border: none;
    }

    .contact-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: none;
    }

    .contact-card::before {
        display: none;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 8px;
        font-size: 1.8rem;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .contact-card:hover .contact-icon {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .contact-method,
    .contact-id,
    .contact-btn {
        display: none;
    }

    /* แสดงเฉพาะ icon เป็น link ใน mobile */
    .contact-card {
        position: relative;
    }

    .contact-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        z-index: 10;
    }

    /* จัดการ link ให้คลิกที่ icon ได้ */
    .contact-card.line-card {
        cursor: pointer;
    }

    .contact-card.phone-card {
        cursor: pointer;
    }

    .contact-card.facebook-card {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .contact-methods {
        gap: 12px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }
}

/* Dynamic Contact Grid */
.contact-methods[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 300px;
}

.contact-methods[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
}

.contact-methods[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

@media (max-width: 768px) {
    .contact-methods[data-count="2"],
    .contact-methods[data-count="3"] {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Latest Products Section Styles */
.latest-products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.latest-products-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(246, 194, 67, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.latest-products-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--thunder-black);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.latest-products-title i {
    color: #f6c243;
    animation: sparkle-glow 2s infinite alternate;
}

.latest-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.latest-product-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(246, 194, 67, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.latest-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(246, 194, 67, 0.1);
    border-color: rgba(246, 194, 67, 0.2);
}

.latest-product-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
}

.new-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    animation: new-pulse 2s infinite;
}

.new-badge i {
    margin-right: 5px;
    animation: star-twinkle 1.5s infinite alternate;
}

.latest-promotion-badge {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    animation: promotion-pulse 2s infinite;
}

.latest-promotion-badge i {
    margin-right: 5px;
    animation: fire-flicker 1.5s infinite alternate;
}

.latest-product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.latest-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-product-card:hover .latest-product-image img {
    transform: scale(1.1);
}

.latest-product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.latest-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-product-card:hover .latest-product-overlay {
    opacity: 1;
}

.latest-product-lightning {
    color: #f6c243;
    font-size: 2rem;
    animation: lightning-glow 1.5s infinite alternate;
}

.latest-product-content {
    padding: 25px;
}

.latest-product-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--thunder-black);
    margin-bottom: 10px;
    line-height: 1.3;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.9rem; /* 3 lines * line-height */
    max-height: 3.9rem;
}

.latest-product-category {
    margin-bottom: 15px;
}

.latest-category-link {
    display: inline-flex;
    align-items: center;
    background: rgba(246, 194, 67, 0.1);
    color: #f6c243;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(246, 194, 67, 0.2);
}

.latest-category-link:hover {
    background: rgba(246, 194, 67, 0.2);
    color: var(--thunder-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(246, 194, 67, 0.2);
}

.latest-category-link i {
    margin-right: 5px;
    font-size: 10px;
}

.latest-product-price-section {
    margin-bottom: 20px;
}

.latest-original-price {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-strikethrough-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.latest-discount-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.latest-sale-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.latest-price {
    color: var(--thunder-black);
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-price.promotion-active {
    color: #ff4757;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.latest-product-actions {
    text-align: center;
}

.latest-product-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f6c243, #f39c12);
    color: var(--thunder-black);
    padding: 12px 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(246, 194, 67, 0.3);
    position: relative;
    overflow: hidden;
}

.latest-product-btn:hover {
    color: var(--thunder-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 194, 67, 0.5);
}

.latest-product-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.latest-product-btn:hover::before {
    left: 100%;
}

.view-all-latest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.view-all-latest-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.5);
}

.empty-latest-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-latest-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-latest-products h3 {
    color: var(--thunder-black);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-latest-products p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.browse-all-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.browse-all-products-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Latest Products Animations */
@keyframes sparkle-glow {
    0% {
        text-shadow: 0 0 5px rgba(246, 194, 67, 0.5);
        transform: scale(1);
    }

    100% {
        text-shadow:
            0 0 20px rgba(246, 194, 67, 0.8),
            0 0 30px rgba(246, 194, 67, 0.5);
        transform: scale(1.05);
    }
}

@keyframes new-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.6);
    }
}

@keyframes lightning-glow {
    0% {
        text-shadow: 0 0 10px rgba(246, 194, 67, 0.6);
        transform: scale(1);
    }

    100% {
        text-shadow:
            0 0 25px rgba(246, 194, 67, 0.9),
            0 0 35px rgba(246, 194, 67, 0.6);
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .promotions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .latest-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .latest-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .latest-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .products-title {
        font-size: 1.8rem;
    }

    .promotion-card {
        margin: 0 5px;
    }

    .latest-product-card {
        margin: 0 5px;
    }

    .timer-display {
        font-size: 14px;
    }

    .timer-display span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .latest-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .categories-title,
    .promotions-title,
    .products-title,
    .latest-products-title {
        font-size: 1.7rem;
    }

    .promotion-name,
    .latest-product-name {
        font-size: 1rem;
        min-height: 4rem; /* 3 lines * smaller line-height for mobile */
        max-height: 3rem;
    }

    .product-name {
        font-size: 1rem;
        min-height: 4.5rem; /* 3 lines * line-height for mobile */
        max-height: 3.3rem;
    }

    .sale-price,
    .latest-price {
        font-size: 1.3rem;
    }

    .promotion-card {
        margin: 0 2px;
    }

    .latest-product-card {
        margin: 0 2px;
    }

    .latest-product-image {
        height: 150px;
    }

    .latest-product-content {
        padding: 15px;
    }

    .view-all-latest-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Utility Classes for Spacing and Layout */
.icon-margin-left {
    margin-left: 20px;
}

.icon-margin-right {
    margin-right: 20px;
}

.icon-margin-left-small {
    margin-left: 10px;
}

.icon-margin-right-small {
    margin-right: 10px;
}

.hidden {
    display: none;
}

.products-title-thunder {
    color: var(--thunder-yellow);
}

.product-image-height {
    height: 60%;
}
