← back to Flockedwallpaper

styles.css

503 lines

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #000000;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.5px;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    margin-top: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #000000;
}

.mobile-menu-toggle {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000000;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
                url('https://cdn.shopify.com/s/files/1/0015/4117/7456/files/flockedvelvetwallpaper_0c84de5f-7a44-4f3b-b8fe-c91417d0efdb.png?v=1760485642');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 40px 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    color: #FFFFFF;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #FFFFFF;
    max-width: 650px;
    margin: 0 auto 36px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.product-count {
    font-family: 'Montserrat', sans-serif;
    background: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 2px;
    color: #000000;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid #e0e0e0;
}

.product-count-hero {
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    color: #000000;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #ffffff;
}

/* Color Filters */
.filters-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.filters-section h2 {
    font-size: 20px;
    color: #8B4789;
    margin-bottom: 20px;
    font-weight: 600;
}

.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-chip {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-chip:hover {
    border-color: #8B4789;
    color: #8B4789;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 71, 137, 0.15);
}

.color-chip.active {
    background: #8B4789;
    color: white;
    border-color: #8B4789;
}

.color-chip .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.filter-count {
    font-size: 13px;
    color: #888;
    margin-left: 4px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(139, 71, 137, 0.2);
}

.product-image {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.product-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-info {
    padding: 16px;
    text-align: center;
}

.product-sku {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    color: #333;
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-link {
    font-size: 13px;
    color: #8B4789;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-card:hover .product-link {
    color: #6B3769;
}

/* Loading State */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
    grid-column: 1 / -1;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B4789;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 80px 40px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: #999999;
    font-size: 14px;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    font-family: 'Montserrat', sans-serif;
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    font-weight: 300;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222222;
    color: #666666;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .product-image {
        height: 280px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .header-content {
        padding: 0 20px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .product-count {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-section {
        padding: 20px;
    }

    .filters-section h2 {
        font-size: 18px;
    }

    .color-chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    .color-chip .color-swatch {
        width: 16px;
        height: 16px;
    }
}