/* ===================================================
   TUBOFLOW — HOMEPAGE STYLES
   =================================================== */

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-base);
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(10, 10, 15, 0.95) 0%,
            rgba(10, 10, 15, 0.7) 50%,
            rgba(139, 92, 246, 0.15) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.4);
    }
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

.hero__title span {
    display: block;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-default);
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===================================================
   TRUST BAR
   =================================================== */
.trust-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-xl) 0;
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.trust-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    text-align: left;
}

.trust-bar__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    flex-shrink: 0;
}

.trust-bar__icon svg {
    width: 22px;
    height: 22px;
}

.trust-bar__label {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.trust-bar__sublabel {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ===================================================
   FEATURED PRODUCTS
   =================================================== */
.featured-products {
    padding: var(--space-4xl) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-cyan);
}

.product-card__image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: 2;
}

.product-card__quick-view {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-card__quick-view {
    opacity: 1;
    transform: translateY(0);
}

.product-card__body {
    padding: var(--space-lg);
}

.product-card__platform {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.product-card__title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-default);
}

.product-card__add-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-inverse);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card__add-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-cyan);
}

/* Product Card Pricing — always visible */
.product-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card__pricing .price {
    display: inline-block !important;
    visibility: visible !important;
}

.product-card__pricing .price--original,
.product-card__pricing .price del {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}

.product-card__pricing .price--current,
.product-card__pricing .price ins {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-success);
    text-decoration: none;
    line-height: 1.2;
}

.product-card__pricing .price--current .woocommerce-Price-amount {
    color: var(--color-success);
}

/* ===================================================
   CATEGORY SHOWCASE
   =================================================== */
.category-showcase {
    padding: var(--space-4xl) 0;
    background: var(--bg-surface);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.category-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.category-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-xl);
    font-size: 28px;
    transition: all var(--transition-base);
}

.category-card:hover .category-card__icon {
    background: rgba(var(--color-primary-rgb), 0.2);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.1);
}

.category-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.category-card__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ===================================================
   DEALS COUNTDOWN
   =================================================== */
.deals-section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.deals-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.deals-banner {
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.1));
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    position: relative;
}

.deals-banner__content h2 {
    margin-bottom: var(--space-md);
}

.deals-banner__content p {
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.countdown {
    display: flex;
    gap: var(--space-md);
}

.countdown__item {
    text-align: center;
    min-width: 70px;
}

.countdown__value {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.countdown__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.countdown__separator {
    font-size: var(--text-3xl);
    color: var(--text-muted);
    line-height: 1;
    padding-top: 2px;
}

/* Deals Header */
.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.deals-header__text .section-subtitle {
    max-width: 480px;
}

/* Deals Slider */
.deals-slider {
    position: relative;
    padding: 0 50px;
}

.deals-slider__viewport {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.deals-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.deals-slider__slide {
    min-width: 25%;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

.deals-slider__prev,
.deals-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
}

.deals-slider__prev {
    left: 0;
}

.deals-slider__next {
    right: 0;
}

.deals-slider__prev:hover,
.deals-slider__next:hover {
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: rgba(var(--color-primary-rgb), 0.08);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.2);
}

.deals-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.deals-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--border-default);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.deals-slider__dot--active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.4);
}

/* Deal Card */
.deal-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.deal-card:hover {
    border-color: rgba(var(--color-accent-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--color-accent-rgb), 0.15);
}

.deal-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.deal-card__badge--hot {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.deal-card__image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-elevated);
}

.deal-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.deal-card:hover .deal-card__image img {
    transform: scale(1.05);
}

.deal-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
}

.deal-card__info {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.deal-card__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-card__price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.deal-card__price-old {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-card__price-new {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-success);
}

/* Deals Slider Responsive */
@media (max-width: 1024px) {
    .deals-slider__slide {
        min-width: 33.333%;
    }

    .deals-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .deals-slider__slide {
        min-width: 50%;
    }

    .deals-slider {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .deals-slider__slide {
        min-width: 100%;
    }
}

/* ===================================================
   LATEST NEWS
   =================================================== */
.latest-news {
    padding: var(--space-4xl) 0;
    background: var(--bg-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.news-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.news-card:hover {
    border-color: rgba(var(--color-secondary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}

.news-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.news-card__body {
    padding: var(--space-lg);
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.news-card__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

.news-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   NEWSLETTER
   =================================================== */
.newsletter {
    padding: var(--space-4xl) 0;
    position: relative;
}

.newsletter__box {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.newsletter__box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.newsletter__box h2 {
    margin-bottom: var(--space-md);
}

.newsletter__box p {
    max-width: 480px;
    margin: 0 auto var(--space-xl);
}

.newsletter__form {
    display: flex;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter__input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.newsletter__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.newsletter__message {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: none;
}

.newsletter__message--success {
    display: block;
    background: rgba(var(--color-success-rgb), 0.1);
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb), 0.2);
}

.newsletter__message--error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

/* ===================================================
   RESPONSIVE — HOMEPAGE
   =================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-banner {
        flex-direction: column;
        text-align: center;
    }

    .countdown {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: var(--header-height);
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .newsletter__form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .trust-bar__grid {
        grid-template-columns: 1fr;
    }

    .countdown__item {
        min-width: 55px;
    }

    .countdown__value {
        font-size: var(--text-2xl);
    }
}