* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #e0eeff;
    color: #1e293b;
    padding-top: 155px; /* Clears the fixed top-bar + main-header + main-nav */
    padding-bottom: 60px;
}

.wishlist-main-content {
    position: relative;
    width: 100%;
    padding-top: 1rem;
}

.wishlist-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-title {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.page-title i {
    color: #ef4444;
}

/* Light blue background container wrapper for grid items */
.related-brand-wrapper-card {
    background-color: #f0f6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
}

.b2b-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Product Card Style */
.b2b-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.1);
}

.b2b-card-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.b2b-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.b2b-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.b2b-product-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
    min-height: 2.34rem; /* Locks height to 2 lines across all cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
}

.b2b-rating {
    font-size: 0.8rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.btn-add {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 0.35rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-add:hover {
    background-color: #dc2626;
}

/* Bottom Action Stack */
.wishlist-actions-bottom {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.btn-continue-shopping {
    background-color: #ffffff;
    color: #1e3a8a;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-continue-shopping:hover {
    background-color: #f8fafc;
}

/* Responsive Grid Adjustments */
@media screen and (max-width: 1024px) {
    .b2b-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 170px;
    }
    .b2b-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .b2b-grid {
        grid-template-columns: 1fr;
    }
}