/* ========== HERO ========== */
.tz-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tz-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0033 0%, #0a0a0a 40%, #001a1f 100%);
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(25deg); }
}

.tz-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(123, 0, 255, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 245, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 0, 170, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.tz-hero-shirts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 1200px;
}

.shirt-3d {
    position: absolute;
    width: 140px;
    height: 160px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px 12px 8px 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    animation: floatShirt 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

.shirt-3d::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px 8px 0 0;
}

.shirt-3d::after {
    content: 'تي';
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 900;
    background: var(--tz-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shirt-1 { top: 15%; left: 8%; animation-delay: 0s; transform: rotateY(-15deg) rotateX(5deg); }
.shirt-2 { top: 25%; right: 10%; animation-delay: -2s; transform: rotateY(20deg) rotateX(-8deg); width: 120px; height: 140px; }
.shirt-3 { bottom: 20%; left: 15%; animation-delay: -4s; transform: rotateY(10deg); width: 100px; height: 120px; opacity: 0.7; }
.shirt-4 { bottom: 30%; right: 18%; animation-delay: -6s; transform: rotateY(-25deg); width: 110px; opacity: 0.6; }

@keyframes floatShirt {
    0%, 100% { transform: translateY(0) rotateY(var(--ry, 0deg)) rotateX(5deg); }
    50% { transform: translateY(-25px) rotateY(calc(var(--ry, 0deg) + 10deg)) rotateX(-5deg); }
}

.tz-hero-content {
    position: relative;
    z-index: 2;
}

.tz-hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(123, 0, 255, 0.2);
    border: 1px solid rgba(123, 0, 255, 0.5);
    color: var(--tz-cyan);
    margin-bottom: 1.25rem;
}

.tz-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

.typing-text {
    background: var(--tz-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tz-hero-sub {
    font-size: 1.15rem;
    color: var(--tz-text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.tz-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tz-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--tz-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    animation: bounceScroll 2s ease-in-out infinite;
}

.tz-scroll-indicator i {
    font-size: 1.5rem;
    color: var(--tz-cyan);
}

@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== SECTIONS ========== */
.tz-section {
    padding: 5rem 0;
    position: relative;
}

.tz-section-dark {
    background: linear-gradient(180deg, transparent, rgba(123, 0, 255, 0.05), transparent);
}

.tz-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tz-section-title .title-line {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--tz-gradient);
    border-radius: 2px;
    animation: lineGrow 1.2s ease forwards;
}

@keyframes lineGrow {
    from { width: 0; opacity: 0; }
    to { width: 80px; opacity: 1; }
}

/* Category chips */
.tz-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tz-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    background: var(--tz-glass);
    border: 1px solid var(--tz-border);
    color: var(--tz-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tz-chip:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--tz-purple);
    box-shadow: 0 8px 30px rgba(123, 0, 255, 0.35);
    color: #fff;
    background: linear-gradient(135deg, rgba(123,0,255,0.25), rgba(0,245,255,0.1));
}

.chip-icon {
    color: var(--tz-cyan);
}

.chip-count {
    font-size: 0.75rem;
    color: var(--tz-text-muted);
    font-weight: 400;
}

/* Hex category cards */
.tz-category-hex {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.hex-inner {
    padding: 2rem;
    text-align: center;
    background: var(--tz-glass);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    transition: all 0.4s ease;
    height: 100%;
}

.hex-inner i {
    font-size: 2.5rem;
    background: var(--tz-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 1rem;
}

.tz-category-hex:hover .hex-inner {
    transform: translateY(-8px);
    border-color: rgba(123, 0, 255, 0.5);
    box-shadow: 0 20px 50px rgba(123, 0, 255, 0.2);
    background: linear-gradient(135deg, rgba(123,0,255,0.15), rgba(0,0,0,0.2));
}

.hex-inner h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hex-inner p {
    font-size: 0.9rem;
    color: var(--tz-text-muted);
    margin: 0;
}

/* ========== PRODUCT CARDS ========== */
.tz-products-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--tz-purple) transparent;
}

@media (max-width: 991px) {
    .tz-products-grid {
        flex-wrap: nowrap !important;
        width: max-content;
        padding-inline-end: 1rem;
    }
    .tz-product-col {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

.tz-product-card {
    position: relative;
    background: var(--tz-glass);
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    height: 100%;
}

.tz-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--tz-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.tz-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(123, 0, 255, 0.25);
}

.tz-product-card:hover::before {
    opacity: 1;
}

.tz-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.tz-badge-new {
    background: var(--tz-gradient);
    color: #fff;
    animation: pulseBadge 2s ease-in-out infinite;
}

.tz-badge-best {
    background: rgba(255, 0, 170, 0.9);
    color: #fff;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 0, 255, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(123, 0, 255, 0); }
}

.tz-product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #151515;
}

.tz-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tz-product-card:hover .tz-product-img {
    transform: scale(1.08);
}

.tz-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.tz-product-card:hover .tz-quick-add {
    transform: translateY(0);
}

.tz-quick-add-btn {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 50px;
    background: var(--tz-gradient);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 0.9rem;
    box-shadow: 0 0 24px rgba(123, 0, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.tz-quick-add-btn:not(:disabled):hover {
    transform: scale(1.03);
    box-shadow: 0 0 36px rgba(0, 245, 255, 0.6);
}

.tz-quick-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tz-product-body {
    padding: 1.15rem;
}

.tz-product-cat {
    font-size: 0.75rem;
    color: var(--tz-cyan);
    font-weight: 600;
}

.tz-product-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.35rem 0;
}

.tz-product-name a {
    color: var(--tz-text);
    text-decoration: none;
}

.tz-product-name a:hover {
    color: var(--tz-cyan);
}

.tz-product-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tz-price-old {
    text-decoration: line-through;
    color: var(--tz-text-muted);
    font-size: 0.85rem;
}

.tz-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tz-cyan);
}

.tz-color-swatches {
    display: flex;
    gap: 0.4rem;
}

.tz-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: var(--swatch, #333);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tz-swatch:hover,
.tz-swatch.active {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--swatch);
    border-color: #fff;
}

/* Flash sale */
.tz-flash-card {
    padding: 2.5rem;
}

.tz-flash-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tz-pink);
    font-weight: 700;
}

.tz-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tz-count-unit {
    text-align: center;
    min-width: 72px;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    border: 1px solid var(--tz-border);
}

.tz-count-unit span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: var(--tz-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(123, 0, 255, 0.6));
    animation: glowNum 1.5s ease-in-out infinite alternate;
}

@keyframes glowNum {
    from { filter: drop-shadow(0 0 8px rgba(123, 0, 255, 0.4)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.8)); }
}

.tz-count-unit small {
    color: var(--tz-text-muted);
    font-size: 0.75rem;
}

/* Why cards */
.tz-why-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.4s ease;
}

.tz-why-card:hover {
    transform: translateY(-6px);
}

.tz-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--tz-gradient);
    font-size: 1.75rem;
    color: #fff;
}

/* Masonry community */
.tz-masonry {
    columns: 4;
    column-gap: 1rem;
}

@media (max-width: 992px) {
    .tz-masonry { columns: 3; }
}

@media (max-width: 576px) {
    .tz-masonry { columns: 2; }
}

.tz-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.tz-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.tz-masonry-item:hover img {
    transform: scale(1.08);
}

.tz-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(123, 0, 255, 0.6));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.tz-masonry-item:hover .tz-masonry-overlay {
    opacity: 1;
}

.tz-masonry-overlay i {
    font-size: 1.5rem;
    color: #fff;
}

/* Scroll reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up { opacity: 1; transform: none; }
}
