/* ═══════════════════════════════════════════
   Ecommerce Development — Angular Geometric UI
   ═══════════════════════════════════════════ */

.ecom-page {
    position: relative;
    overflow-x: hidden;
    background: var(--dark);
}

/* Floating angular shapes */
.ecom-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ecom-shape {
    position: absolute;
    opacity: 0.1;
    background: var(--gradient-primary);
}

.ecom-shape-1 {
    width: 320px;
    height: 320px;
    top: 10%;
    left: -100px;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation: ecomFloat 15s ease-in-out infinite;
}

.ecom-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: -50px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    animation: ecomFloat 20s ease-in-out infinite reverse;
}

.ecom-shape-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 5%;
    clip-path: circle(50% at 50% 50%);
    opacity: 0.05;
    animation: ecomFloat 12s ease-in-out infinite 1s;
}

@keyframes ecomFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ── Hero ── */
.ecom-hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.ecom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.ecom-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ecom-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.ecom-hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ecom-hero-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: block;
}

.ecom-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.ecom-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%; /* Reduced from 100% */
    margin: 0 auto;
}

.ecom-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    max-height: 450px; /* Limit height to keep it compact */
    object-fit: contain;
}

.ecom-img-wrap:hover img {
    transform: scale(1.05);
}

/* ── Content Sections ── */
.ecom-content-section, .ecom-solutions-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.ecom-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.ecom-content-grid-reverse {
    grid-template-columns: 1fr 1.2fr;
}

.ecom-prose h3 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 24px;
    color: var(--text);
}

.ecom-prose p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 17px;
}

/* ── Panels ── */
.ecom-panel-section, .ecom-tech-section {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.5);
}

.ecom-panel, .ecom-tech-panel {
    background: var(--dark-light);
    padding: 60px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.ecom-panel p, .ecom-tech-panel p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ── Features ── */
.ecom-features-section {
    padding: 100px 0;
}

.ecom-features-title {
    text-align: center;
    margin-bottom: 60px;
}

.ecom-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ecom-feature-card {
    background: var(--dark-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.ecom-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
}

.ecom-feature-icon {
    font-size: 24px;
    color: var(--secondary);
}

.ecom-feature-info h4 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.ecom-feature-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ── CTA ── */
.ecom-page-cta {
    margin-top: 60px;
}

@media (max-width: 992px) {
    .ecom-hero-grid, .ecom-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .ecom-content-grid-reverse {
        grid-template-columns: 1fr;
    }
    
    .ecom-hero-visual {
        order: -1;
    }
    
    .ecom-panel, .ecom-tech-panel {
        padding: 40px 20px;
    }
}
