Catalog Layout Pattern¶
The product catalog is a responsive grid of product cards with a gradient hero header. It is the primary entry point for merchant payment catalogs.
Structure¶
┌─────────────────────────────────────────────────┐
│ Page background (#F1F1F1) │
│ │
│ ┌─────────────────────────────────────────┐ │
│ │ Gradient hero header │ │
│ │ Merchant logo + name │ │
│ └─────────────────────────────────────────┘ │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Product │ │ Product │ │ Product │ │
│ │ Card │ │ Card │ │ Card │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Product │ │ Product │ │ Product │ │
│ │ Card │ │ Card │ │ Card │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │
└─────────────────────────────────────────────────┘
Live Preview¶
CSS Implementation¶
/* Page */
body {
background: #F1F1F1;
font-family: 'Cabin', sans-serif;
margin: 0;
}
/* Hero */
.catalog-hero {
background: linear-gradient(73deg, #6E96FF 20%, #5C0390 100%);
padding: 24px 32px;
color: white;
margin-bottom: 24px;
}
.catalog-hero__inner {
max-width: 1280px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 16px;
}
.catalog-hero__logo {
width: 56px;
height: 56px;
background: rgba(255,255,255,0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.catalog-hero__label { font-size: 12px; opacity: 0.8; margin-bottom: 2px; }
.catalog-hero__name { font-size: 24px; font-weight: 700; color: white; }
/* Container */
.catalog-container {
max-width: 1280px;
margin: 0 auto;
padding: 0 20px 48px;
}
@media (min-width: 768px) { .catalog-container { padding: 0 24px 48px; } }
@media (min-width: 1024px) { .catalog-container { padding: 0 32px 48px; } }
/* Product grid */
.catalog-grid {
display: grid;
gap: 16px;
grid-template-columns: 1fr;
}
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1280px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
/* Product card */
.product-card {
background: #FAFAFA;
border-radius: 10px;
padding: 20px;
transition: all 0.3s ease;
cursor: pointer;
}
.product-card:hover {
background: #FFFFFF;
box-shadow: 0 8px 16px -4px rgba(10, 10, 10, 0.1);
transform: translateY(-2px);
}
.product-card__period { font-size: 12px; color: #999; margin-bottom: 4px; }
.product-card__name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 4px; }
.product-card__price { font-size: 22px; font-weight: 700; color: #6E96FF; margin-bottom: 12px; }
.product-card__period-suffix { font-size: 12px; font-weight: 400; color: #999; }
.product-card__btn {
width: 100%;
height: 36px;
background: #EBF0FF;
color: #6E96FF;
border: none;
border-radius: 8px;
font-family: 'Cabin', sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.product-card__btn:hover {
background: #d4e0ff;
}