:root {
    /* Color Palette - Vibrant Blue Theme (like Ant Beale) */
    --bg-color: #0a7cff;
    --card-bg: #1a8aff;
    --card-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --price-color: #ffffff;
    --original-price-color: rgba(255, 255, 255, 0.5);
    --btn-bg: #ffffff;
    --btn-text: #0a7cff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.25s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 20px;
}

@media (min-width: 992px) {
    #app {
        flex-direction: row;
        padding: 40px;
        gap: 50px;
    }
}

/* --- Sidebar / Profile Section --- */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .profile-section {
        position: sticky;
        top: 40px;
        width: 220px;
        margin-bottom: 0;
        align-self: flex-start;
    }
}

.avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* --- Main Content / Product Grid --- */
.content-wrapper {
    flex-grow: 1;
    max-width: 800px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Horizontal Product Card --- */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.product-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-header .description {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-weight: 700;
    font-size: 1rem;
}

.original-price {
    font-size: 0.8rem;
    color: var(--original-price-color);
    text-decoration: line-through;
}

.cta-btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

/* --- Footer --- */
.main-footer {
    margin-top: auto;
    padding: 30px 0 10px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (min-width: 992px) {
    .main-footer {
        text-align: left;
        padding-left: 270px;
        /* Align with content */
    }
}