/**
 * Homepage Styles - Clean & Modern
 */

:root {
    --home-primary: #0193e0;
    --home-primary-dark: #0078b8;
    --home-accent: #00b4d8;
    --home-success: #00a651;
    --home-dark: #1a1a2e;
    --home-text: #333;
    --home-text-light: #666;
    --home-border: #e8e8e8;
    --home-bg: #f5f5f5;
    --home-white: #fff;
    --home-radius: 8px;
    --home-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --home-shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
}

.tp-home {
    background: var(--home-bg);
}

.tp-home > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   Hero Section - Premium Design
   ========================================== */
.tp-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--home-bg) 100%);
    padding: 0;
    position: relative;
}

.tp-hero .container-fluid {
    max-width: 100%;
    padding: 0;
}

.tp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    min-height: 480px;
}

@media (max-width: 1199px) {
    .tp-hero-grid {
        grid-template-columns: 1fr 240px;
        min-height: 420px;
    }
}

@media (max-width: 991px) {
    .tp-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .tp-hero-sidebar {
        display: none;
    }
}

/* ==========================================
   Hero Main Banner - Slider Style
   ========================================== */
.tp-hero-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.tp-hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.01)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
}

.tp-hero-main::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0,102,204,0.15) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 1199px) {
    .tp-hero-main {
        min-height: 420px;
    }
}

@media (max-width: 991px) {
    .tp-hero-main {
        min-height: 380px;
        border-radius: 12px;
        margin: 15px;
    }
}

.tp-hero-default {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 50px 60px;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .tp-hero-default {
        padding: 40px 30px;
        text-align: center;
        justify-content: center;
    }
}

.tp-hero-default-inner {
    max-width: 550px;
}

@media (max-width: 767px) {
    .tp-hero-default-inner {
        max-width: 100%;
    }
}

.tp-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--home-white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeInDown 0.8s ease;
}

.tp-hero-label i {
    font-size: 14px;
    color: #ffd700;
}

.tp-hero-default h1 {
    color: var(--home-white);
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.15;
    font-family: var(--tp-ff-jost, 'Jost', sans-serif);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.tp-hero-default h1 span {
    color: #ffd700;
    position: relative;
}

@media (max-width: 1199px) {
    .tp-hero-default h1 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .tp-hero-default h1 {
        font-size: 32px;
    }
}

.tp-hero-default p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    margin: 0 0 35px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@media (max-width: 767px) {
    .tp-hero-default p {
        font-size: 15px;
        margin-bottom: 30px;
    }
}

.tp-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@media (max-width: 767px) {
    .tp-hero-actions {
        justify-content: center;
    }
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.tp-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;
}

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

.tp-btn-primary {
    background: linear-gradient(135deg, var(--home-primary) 0%, #0077ed 100%);
    color: var(--home-white);
    box-shadow: 0 4px 15px rgba(0,102,204,0.4);
}

.tp-btn-primary:hover {
    background: linear-gradient(135deg, #0077ed 0%, var(--home-primary) 100%);
    color: var(--home-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.5);
}

.tp-btn-primary i {
    transition: transform 0.3s ease;
}

.tp-btn-primary:hover i {
    transform: translateX(3px);
}

.tp-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--home-white);
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

.tp-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: var(--home-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

.tp-btn-whatsapp i {
    font-size: 18px;
}

/* ==========================================
   Hero Sidebar - Feature Cards
   ========================================== */
.tp-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--home-white);
    border-left: 1px solid var(--home-border);
}

.tp-info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 20px;
    background: var(--home-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--home-border);
    position: relative;
    overflow: hidden;
}

.tp-info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--tp-theme-primary, var(--home-primary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tp-info-card:last-child {
    border-bottom: none;
}

.tp-info-card:hover {
    background: linear-gradient(90deg, rgba(0,102,204,0.05) 0%, transparent 100%);
}

.tp-info-card:hover::before {
    transform: scaleY(1);
}

.tp-info-card i {
    font-size: 26px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tp-info-card:hover i {
    transform: scale(1.1);
}

.tp-info-deals i {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: var(--home-accent);
}

.tp-info-call i {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--home-primary);
}

.tp-info-whatsapp i {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--home-success);
}

.tp-info-card strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--home-dark);
    margin-bottom: 4px;
    font-family: var(--tp-ff-jost, 'Jost', sans-serif);
}

.tp-info-card span {
    font-size: 12px;
    color: var(--home-text-light);
    line-height: 1.4;
}

.tp-info-card:hover strong {
    color: var(--tp-theme-primary, var(--home-primary));
}

/* Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Quick Categories Grid - Enhanced Design
   ========================================== */
.tp-quick-cats {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 50px 0 60px;
    position: relative;
}

.tp-quick-cats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-accent), var(--home-success));
}

.tp-quick-cats .container-fluid {
    max-width: 100%;
    padding: 0;
}

.tp-quick-cats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.tp-quick-cats-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--home-dark);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.tp-quick-cats-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--home-primary);
    border-radius: 2px;
}

.tp-quick-cats-header a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-white);
    background: var(--home-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.tp-quick-cats-header a:hover {
    background: var(--home-primary-dark);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.tp-quick-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

@media (max-width: 1399px) {
    .tp-quick-cats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1199px) {
    .tp-quick-cats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .tp-quick-cats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 575px) {
    .tp-quick-cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tp-quick-cats-header h2 {
        font-size: 22px;
    }

    .tp-quick-cats-header a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.tp-quick-cat-card {
    display: block;
    background: var(--home-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.tp-quick-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tp-quick-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tp-quick-cat-card:hover::after {
    border-color: var(--home-primary);
}

.tp-quick-cat-card-img {
    position: relative;
    padding-top: 85%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow: hidden;
}

.tp-quick-cat-card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
    z-index: 1;
    pointer-events: none;
}

.tp-quick-cat-card-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tp-quick-cat-card:hover .tp-quick-cat-card-img img {
    transform: translate(-50%, -50%) scale(1.1);
}

.tp-quick-cat-card-info {
    padding: 18px 15px 20px;
    text-align: center;
    background: var(--home-white);
    position: relative;
}

.tp-quick-cat-card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--home-border);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.tp-quick-cat-card:hover .tp-quick-cat-card-info::before {
    width: 60px;
    background: var(--home-primary);
}

.tp-quick-cat-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--home-dark);
    margin: 8px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.tp-quick-cat-card:hover .tp-quick-cat-card-info h3 {
    color: var(--home-primary);
}

.tp-quick-cat-card-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--home-text-light);
    background: #f5f7fa;
    padding: 4px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tp-quick-cat-card:hover .tp-quick-cat-card-info span {
    background: var(--home-primary);
    color: var(--home-white);
}

/* View All Arrow Animation */
.tp-quick-cat-card-info span::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    font-size: 10px;
    opacity: 0;
    margin-left: -3px;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.tp-quick-cat-card:hover .tp-quick-cat-card-info span::after {
    opacity: 1;
    margin-left: 0;
    transform: translateX(0);
}

@media (max-width: 575px) {
    .tp-quick-cat-card-info {
        padding: 14px 10px 16px;
    }

    .tp-quick-cat-card-info h3 {
        font-size: 14px;
        margin: 6px 0 6px;
    }

    .tp-quick-cat-card-info span {
        font-size: 11px;
        padding: 3px 10px;
    }

    .tp-quick-cat-card-img {
        padding-top: 80%;
    }
}

/* ==========================================
   Categories Showcase
   ========================================== */
.tp-categories-showcase {
    padding: 30px 0;
}

.tp-categories-showcase .container-fluid {
    max-width: 100%;
    padding: 0;
}

.tp-cat-section {
    background: var(--home-white);
    border-radius: var(--home-radius);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid var(--home-border);
}

.tp-cat-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--home-dark), #2d2d44);
}

.tp-cat-section-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.tp-cat-section-title h2 a {
    color: var(--home-white);
    text-decoration: none;
}

.tp-cat-section-title h2 a:hover {
    text-decoration: underline;
}

.tp-cat-section-count {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-left: 10px;
}

.tp-cat-section-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.tp-cat-section-link:hover {
    color: var(--home-white);
}

.tp-cat-section-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

@media (max-width: 991px) {
    .tp-cat-section-body {
        grid-template-columns: 1fr;
    }
    .tp-cat-section-info {
        display: none;
    }
}

/* Category Info Sidebar */
.tp-cat-section-info {
    padding: 20px;
    background: #fafafa;
    border-right: 1px solid var(--home-border);
}

.tp-cat-section-img {
    display: block;
    margin-bottom: 15px;
}

.tp-cat-section-img img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.tp-cat-section-subcats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-cat-section-subcats li {
    margin-bottom: 6px;
}

.tp-cat-section-subcats a {
    display: block;
    padding: 6px 10px;
    background: var(--home-white);
    border: 1px solid var(--home-border);
    border-radius: 4px;
    color: var(--home-text);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.tp-cat-section-subcats a:hover {
    border-color: var(--home-primary);
    color: var(--home-primary);
    background: #f0f7ff;
}

/* Products Grid */
.tp-cat-section-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--home-border);
    padding: 1px;
}

@media (max-width: 1399px) {
    .tp-cat-section-products {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1199px) {
    .tp-cat-section-products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .tp-cat-section-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .tp-cat-section-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tp-product-mini {
    display: flex;
    flex-direction: column;
    background: var(--home-white);
    padding: 15px;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.tp-product-mini:hover {
    z-index: 10;
    box-shadow: var(--home-shadow-lg);
}

.tp-product-mini-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: var(--home-white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
}

.tp-product-mini-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 12px;
}

.tp-product-mini-img img {
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.tp-product-mini:hover .tp-product-mini-img img {
    transform: scale(1.05);
}

.tp-product-mini-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--home-text);
    margin: 0 0 8px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tp-product-mini:hover h4 {
    color: var(--home-primary);
}

.tp-product-mini-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--home-accent);
}

.tp-product-mini-price del {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-left: 5px;
}

.tp-product-mini-price .woocommerce-Price-amount {
    color: var(--home-accent);
}

.tp-product-mini-price del .woocommerce-Price-amount {
    color: #999;
    font-weight: 400;
}

/* ==========================================
   Features Strip
   ========================================== */
.tp-features {
    background: var(--home-white);
    padding: 25px 0;
    border-top: 1px solid var(--home-border);
}

.tp-features .container-fluid {
    max-width: 100%;
    padding: 0;
}

.tp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

@media (max-width: 575px) {
    .tp-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.tp-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tp-feature i {
    font-size: 28px;
    color: var(--home-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.tp-feature strong {
    display: block;
    font-size: 14px;
    color: var(--home-dark);
    margin-bottom: 2px;
}

.tp-feature span {
    font-size: 12px;
    color: var(--home-text-light);
}

/* ==========================================
   Responsive Mobile
   ========================================== */
@media (max-width: 767px) {
    .tp-hero {
        padding: 15px 0;
    }

    .tp-hero-default {
        min-height: 280px;
        padding: 30px 20px;
    }

    .tp-hero-default h1 {
        font-size: 28px;
    }

    .tp-hero-default p {
        font-size: 14px;
    }

    .tp-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .tp-cat-section-header {
        padding: 12px 15px;
    }

    .tp-cat-section-title h2 {
        font-size: 15px;
    }

    .tp-cat-section-link {
        font-size: 12px;
    }

    .tp-product-mini {
        padding: 10px;
    }

    .tp-product-mini-img {
        height: 90px;
    }

    .tp-product-mini-info h4 {
        font-size: 12px;
        height: 32px;
    }

    .tp-product-mini-price {
        font-size: 13px;
    }
}

/* ==========================================
   Animations
   ========================================== */
.tp-cat-section {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-cat-section:nth-child(1) { animation-delay: 0.1s; }
.tp-cat-section:nth-child(2) { animation-delay: 0.15s; }
.tp-cat-section:nth-child(3) { animation-delay: 0.2s; }
.tp-cat-section:nth-child(4) { animation-delay: 0.25s; }
.tp-cat-section:nth-child(5) { animation-delay: 0.3s; }
