/* Ally International Custom Theme CSS */

:root {
    --primary-dark: #0f172a;
    --primary-blue: #1e293b;
    --accent-blue: #2563eb;
    --accent-cyan: #0ea5e9;
    --accent-hover: #1d4ed8;
    --success-green: #10b981;
    --warning-gold: #f59e0b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --hover-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.15);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Navbar Styling */
.navbar-ally {
    background-color: var(--primary-dark);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-ally .navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.navbar-ally .navbar-brand span {
    color: var(--accent-cyan);
}

.navbar-ally .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.navbar-ally .nav-link:hover,
.navbar-ally .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-ally .btn-partner {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-ally .btn-partner:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    color: #ffffff;
    padding: 5rem 0 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 620px;
    line-height: 1.6;
}

.badge-hero {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Product Card Styling */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(37, 99, 235, 0.3);
}

.product-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.badge-trending {
    background-color: #8b5cf6;
}

.product-badge.badge-best-seller {
    background-color: var(--warning-gold);
    color: #000;
}

.product-badge.badge-top-margin {
    background-color: var(--success-green);
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--accent-blue);
}

.pricing-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    margin-top: auto;
}

.wholesale-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.retail-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.margin-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Workflow Step Cards */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Category Filter Tags */
.filter-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
}

/* Footer */
.footer-ally {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-ally h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.footer-ally a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-ally a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.88rem;
}

/* Rating Stars */
.star-rating {
    color: var(--warning-gold);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}