Spaces:
Sleeping
Sleeping
Download static/css/styles.css from abdullah9873/e-comm-flask: direct link, hf CLI and curl.
- Browser
- Download file 8.52 kB
-
https://huggingface.co/spaces/abdullah9873/e-comm-flask/resolve/main/static/css/styles.css
- Command line
-
hf download hf://spaces/abdullah9873/e-comm-flask/static/css/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/abdullah9873/e-comm-flask/resolve/main/static/css/styles.css
8.52 kB
| @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap'); | |
| :root { | |
| --navy: #1d355d; | |
| --navy-light: #254778; | |
| --mustard: #f4a261; | |
| --mustard-dark: #e07a30; | |
| --light: #f8f5f0; | |
| --dark: #0d1b2a; | |
| --glass: rgba(255,255,255,0.08); | |
| --glass-border: rgba(255,255,255,0.15); | |
| --shadow: 0 8px 32px rgba(0,0,0,0.3); | |
| --transition: all 0.35s cubic-bezier(0.4,0,0.2,1); | |
| } | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background: var(--dark); | |
| color: var(--light); | |
| overflow-x: hidden; | |
| } | |
| a { text-decoration: none; color: inherit; } | |
| /* ββ HERO ββ */ | |
| .hero-banner { | |
| position: relative; | |
| min-height: 55vh; | |
| background: | |
| linear-gradient(160deg, rgba(29,53,93,0.92) 0%, rgba(13,27,42,0.85) 100%), | |
| url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| text-align: center; | |
| padding: 60px 20px 80px; | |
| overflow: hidden; | |
| } | |
| .hero-banner::before { | |
| content: ''; | |
| position: absolute; | |
| bottom: -2px; left: 0; right: 0; | |
| height: 60px; | |
| background: var(--dark); | |
| clip-path: ellipse(55% 100% at 50% 100%); | |
| } | |
| .back-btn { | |
| position: absolute; | |
| top: 24px; left: 24px; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 20px; | |
| background: var(--glass); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 50px; | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| backdrop-filter: blur(10px); | |
| transition: var(--transition); | |
| color: var(--light); | |
| } | |
| .back-btn:hover { background: var(--mustard); color: var(--dark); border-color: var(--mustard); } | |
| .hero-eyebrow { | |
| font-size: 0.8rem; | |
| letter-spacing: 4px; | |
| text-transform: uppercase; | |
| color: var(--mustard); | |
| margin-bottom: 14px; | |
| } | |
| .hero-content h1 { | |
| font-family: 'Playfair Display', serif; | |
| font-size: clamp(2rem, 5vw, 3.8rem); | |
| font-weight: 700; | |
| line-height: 1.15; | |
| margin-bottom: 18px; | |
| background: linear-gradient(135deg, #fff 30%, var(--mustard) 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .hero-content p { | |
| font-size: 1.05rem; | |
| opacity: 0.75; | |
| max-width: 560px; | |
| margin: 0 auto 36px; | |
| line-height: 1.7; | |
| } | |
| .hero-stats { | |
| display: flex; | |
| gap: 40px; | |
| justify-content: center; | |
| margin-top: 10px; | |
| } | |
| .stat { text-align: center; } | |
| .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--mustard); } | |
| .stat-label { font-size: 0.75rem; opacity: 0.6; letter-spacing: 1px; } | |
| /* ββ CATEGORY NAV ββ */ | |
| .category-nav { | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| background: rgba(13,27,42,0.9); | |
| backdrop-filter: blur(20px); | |
| border-bottom: 1px solid var(--glass-border); | |
| } | |
| .category-nav ul { | |
| display: flex; | |
| justify-content: center; | |
| list-style: none; | |
| padding: 0 16px; | |
| margin: 0; | |
| overflow-x: auto; | |
| gap: 4px; | |
| } | |
| .category-nav ul::-webkit-scrollbar { display: none; } | |
| .category-nav a { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 16px 24px; | |
| font-size: 0.88rem; | |
| font-weight: 500; | |
| color: rgba(248,245,240,0.6); | |
| border-bottom: 3px solid transparent; | |
| transition: var(--transition); | |
| white-space: nowrap; | |
| } | |
| .category-nav a:hover { color: var(--light); border-bottom-color: rgba(244,162,97,0.4); } | |
| .category-nav a.active { color: var(--mustard); border-bottom-color: var(--mustard); } | |
| .category-nav i { font-size: 1rem; } | |
| /* ββ CONTAINER ββ */ | |
| .container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| padding: 60px 24px 80px; | |
| } | |
| /* ββ SECTION HEADER ββ */ | |
| .section-header { | |
| display: flex; | |
| align-items: flex-end; | |
| justify-content: space-between; | |
| margin-bottom: 40px; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| } | |
| .section-title-wrap h2 { | |
| font-family: 'Playfair Display', serif; | |
| font-size: clamp(1.6rem, 3vw, 2.4rem); | |
| font-weight: 700; | |
| margin-bottom: 6px; | |
| } | |
| .section-title-wrap p { | |
| font-size: 0.9rem; | |
| opacity: 0.55; | |
| } | |
| .section-count { | |
| font-size: 0.8rem; | |
| color: var(--mustard); | |
| background: rgba(244,162,97,0.12); | |
| border: 1px solid rgba(244,162,97,0.25); | |
| padding: 6px 14px; | |
| border-radius: 20px; | |
| white-space: nowrap; | |
| } | |
| .section-divider { | |
| height: 1px; | |
| background: linear-gradient(90deg, var(--mustard), transparent); | |
| margin-bottom: 40px; | |
| opacity: 0.3; | |
| } | |
| /* ββ PRODUCT GRID ββ */ | |
| .product-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 28px; | |
| margin-bottom: 70px; | |
| } | |
| /* ββ PRODUCT CARD ββ */ | |
| .product-card { | |
| background: var(--glass); | |
| border: 1px solid var(--glass-border); | |
| border-radius: 20px; | |
| overflow: hidden; | |
| backdrop-filter: blur(12px); | |
| transition: var(--transition); | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .product-card:hover { | |
| transform: translateY(-8px); | |
| border-color: rgba(244,162,97,0.4); | |
| box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(244,162,97,0.15); | |
| } | |
| .category-label { | |
| position: absolute; | |
| top: 14px; left: 14px; | |
| padding: 4px 12px; | |
| border-radius: 30px; | |
| font-size: 0.72rem; | |
| font-weight: 600; | |
| letter-spacing: 0.5px; | |
| text-transform: uppercase; | |
| z-index: 2; | |
| backdrop-filter: blur(8px); | |
| } | |
| .plants-label { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); } | |
| .lamps-label { background: rgba(251,191,36,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); } | |
| .sofas-label { background: rgba(244,162,97,0.2); color: #f4a261; border: 1px solid rgba(244,162,97,0.3); } | |
| .tables-label { background: rgba(167,139,250,0.2);color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); } | |
| .product-image { | |
| height: 220px; | |
| position: relative; | |
| overflow: hidden; | |
| background: linear-gradient(135deg, rgba(37,71,120,0.5), rgba(13,27,42,0.5)); | |
| } | |
| .product-image img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| padding: 20px; | |
| transition: transform 0.5s ease; | |
| } | |
| .product-card:hover .product-image img { transform: scale(1.06); } | |
| .product-image-overlay { | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(to top, rgba(13,27,42,0.8) 0%, transparent 50%); | |
| } | |
| .product-info { | |
| padding: 22px; | |
| display: flex; | |
| flex-direction: column; | |
| flex: 1; | |
| } | |
| .product-info h3 { | |
| font-family: 'Playfair Display', serif; | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| margin-bottom: 8px; | |
| color: #fff; | |
| } | |
| .product-description { | |
| font-size: 0.85rem; | |
| opacity: 0.6; | |
| line-height: 1.6; | |
| margin-bottom: 16px; | |
| flex: 1; | |
| } | |
| .price-container { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 14px; | |
| } | |
| .price { | |
| font-size: 1.3rem; | |
| font-weight: 700; | |
| color: var(--mustard); | |
| } | |
| .rating { | |
| font-size: 0.8rem; | |
| color: #fbbf24; | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .product-meta { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| margin-bottom: 18px; | |
| } | |
| .meta-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 5px; | |
| font-size: 0.75rem; | |
| padding: 4px 10px; | |
| background: rgba(255,255,255,0.06); | |
| border: 1px solid rgba(255,255,255,0.1); | |
| border-radius: 20px; | |
| color: rgba(248,245,240,0.65); | |
| } | |
| .meta-tag i { font-size: 0.7rem; } | |
| .view-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| padding: 12px 20px; | |
| background: linear-gradient(135deg, var(--mustard), var(--mustard-dark)); | |
| color: var(--dark); | |
| border-radius: 10px; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| transition: var(--transition); | |
| border: none; | |
| cursor: pointer; | |
| letter-spacing: 0.3px; | |
| } | |
| .view-btn:hover { | |
| background: linear-gradient(135deg, #fbbf24, var(--mustard)); | |
| box-shadow: 0 8px 24px rgba(244,162,97,0.4); | |
| transform: translateY(-2px); | |
| } | |
| /* ββ RESPONSIVE ββ */ | |
| @media (max-width: 768px) { | |
| .hero-banner { min-height: 45vh; padding: 80px 16px 70px; } | |
| .hero-stats { gap: 24px; } | |
| .stat-num { font-size: 1.4rem; } | |
| .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; } | |
| .category-nav a { padding: 14px 16px; font-size: 0.82rem; } | |
| .section-header { flex-direction: column; align-items: flex-start; } | |
| } | |
| @media (max-width: 480px) { | |
| .container { padding: 40px 14px 60px; } | |
| .product-grid { grid-template-columns: 1fr; gap: 16px; } | |
| .hero-content h1 { font-size: 1.8rem; } | |
| .back-btn { top: 14px; left: 14px; padding: 8px 14px; font-size: 0.8rem; } | |
| .hero-stats { gap: 16px; } | |
| .product-image { height: 190px; } | |
| } |