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->
|
| 5 |
+
|
| 6 |
+
<!-- == PATTERN 1: NIKE/LUXURY DARK == -->
|
| 7 |
+
<style id="e1">
|
| 8 |
+
/* LUXURY DARK ECOMMERCE */
|
| 9 |
+
/* bg:#111 text:#fff font:Inter */
|
| 10 |
+
/* hero: grid 1fr 1fr align:center gap:40px */
|
| 11 |
+
/* h1: clamp(52px,8vw,110px) weight:900 tracking:-5px leading:0.95 uppercase */
|
| 12 |
+
/* product card: bg:#1a1a1a border-radius:16px overflow:hidden */
|
| 13 |
+
/* product card hover: scale(1.03) */
|
| 14 |
+
/* product img: height:280px object-fit:cover transition:transform 0.4s */
|
| 15 |
+
/* product card hover img: scale(1.08) */
|
| 16 |
+
/* sale badge: position:absolute top:12px left:12px bg:#ff3b3b color:#fff 11px weight:800 border-radius:999px */
|
| 17 |
+
/* wishlist btn: position:absolute top:12px right:12px w:32px h:32px bg:rgba(255,255,255,0.9) border-radius:50% */
|
| 18 |
+
/* btn add to cart: width:100% bg:#fff color:#111 border-radius:8px weight:700 hover:bg:#f5f5f5 */
|
| 19 |
+
/* price: 17px weight:800 / old price: 14px color:#555 text-decoration:line-through */
|
| 20 |
+
/* product grid: repeat(4,1fr) gap:20px */
|
| 21 |
+
.dark-product-card {
|
| 22 |
+
background: #1a1a1a;
|
| 23 |
+
border-radius: 16px;
|
| 24 |
+
overflow: hidden;
|
| 25 |
+
transition: transform 0.3s;
|
| 26 |
+
}
|
| 27 |
+
.dark-product-card:hover { transform: scale(1.03); }
|
| 28 |
+
.dark-product-img {
|
| 29 |
+
width: 100%; height: 280px;
|
| 30 |
+
object-fit: cover;
|
| 31 |
+
transition: transform 0.4s;
|
| 32 |
+
}
|
| 33 |
+
.dark-product-card:hover .dark-product-img { transform: scale(1.08); }
|
| 34 |
+
</style>
|
| 35 |
+
|
| 36 |
+
<!-- == PATTERN 2: SHOPIFY CLEAN LIGHT == -->
|
| 37 |
+
<style id="e2">
|
| 38 |
+
/* SHOPIFY CLEAN CONVERSION */
|
| 39 |
+
/* bg:linear-gradient(135deg,#fef9f0,#fff8f5) */
|
| 40 |
+
/* hero: grid 1fr 1fr gap:60px align:center min-height:90vh */
|
| 41 |
+
/* h1: clamp(38px,5vw,64px) weight:900 tracking:-2.5px leading:1.05 color:#1a1a1a */
|
| 42 |
+
/* accent underline: text-decoration-color:#ff6b35 text-underline-offset:6px */
|
| 43 |
+
/* hero image: border-radius:24px box-shadow:0 40px 80px rgba(0,0,0,0.15) */
|
| 44 |
+
/* category grid: 4 cols */
|
| 45 |
+
/* cat card: border-radius:16px overflow:hidden aspect-ratio:3/4 position:relative */
|
| 46 |
+
/* cat overlay: linear-gradient(to top, rgba(0,0,0,0.7) transparent 50%) */
|
| 47 |
+
/* floating badge: bg:#fff border-radius:12px padding:10px 14px box-shadow:0 8px 30px rgba(0,0,0,0.12) */
|
| 48 |
+
.shopify-hero {
|
| 49 |
+
background: linear-gradient(135deg,#fef9f0,#fff8f5);
|
| 50 |
+
}
|
| 51 |
+
.cat-card {
|
| 52 |
+
border-radius: 16px;
|
| 53 |
+
overflow: hidden;
|
| 54 |
+
aspect-ratio: 3/4;
|
| 55 |
+
position: relative;
|
| 56 |
+
cursor: pointer;
|
| 57 |
+
}
|
| 58 |
+
.cat-card img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
|
| 59 |
+
.cat-card:hover img { transform: scale(1.06); }
|
| 60 |
+
.cat-overlay {
|
| 61 |
+
position: absolute; inset: 0;
|
| 62 |
+
background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
|
| 63 |
+
display: flex; align-items: flex-end; padding: 20px;
|
| 64 |
+
}
|
| 65 |
+
</style>
|
| 66 |
+
|
| 67 |
+
<!-- == PATTERN 3: APPLE STORE MINIMAL == -->
|
| 68 |
+
<style id="e3">
|
| 69 |
+
/* APPLE STORE MINIMAL WHITE */
|
| 70 |
+
/* bg:#fbfbfd font: SF Pro / Inter */
|
| 71 |
+
/* hero: text-center padding:100px 24px 60px */
|
| 72 |
+
/* eyebrow: 13px weight:600 color:#6e6e73 letter-spacing:0.02em */
|
| 73 |
+
/* h1: clamp(40px,7vw,80px) weight:900 tracking:-3px leading:1.0 color:#1d1d1f */
|
| 74 |
+
/* product grid: 4 cols */
|
| 75 |
+
/* product card: bg:#fff border-radius:18px padding:24px text-align:center */
|
| 76 |
+
/* card hover: box-shadow 0 12px 40px rgba(0,0,0,0.1) */
|
| 77 |
+
/* product img: aspect-ratio:1 object-fit:contain */
|
| 78 |
+
/* add btn: bg:#0071e3 color:#fff border-radius:999px 13px weight:500 hover:#0077ed */
|
| 79 |
+
</style>
|
| 80 |
+
|
| 81 |
+
<!-- == PATTERN 4: FASHION/GLOSSIER == -->
|
| 82 |
+
<style id="e4">
|
| 83 |
+
/* LIFESTYLE FASHION BRAND */
|
| 84 |
+
/* bg:#fdf8f4 font:Playfair Display for headings Inter for body */
|
| 85 |
+
/* hero: grid 1fr 1fr min-height:100vh overflow:hidden */
|
| 86 |
+
/* hero text: bg:#fdf8f4 flex flex-col justify:center padding:80px 60px */
|
| 87 |
+
/* h1: clamp(36px,5vw,68px) weight:400 leading:1.15 color:#2d1f1a tracking:-1px */
|
| 88 |
+
/* h1 italic: font-style:italic color:#c9956c */
|
| 89 |
+
/* hero img: 100% height 100% object-fit:cover */
|
| 90 |
+
/* btn: bg:#2d1f1a color:#fdf8f4 border-radius:999px 14px weight:600 letter-spacing:0.03em */
|
| 91 |
+
/* product card: bg:#fff border-radius:20px overflow:hidden */
|
| 92 |
+
</style>
|
| 93 |
+
|
| 94 |
+
<!-- == PATTERN 5: FLASH SALE / HIGH ENERGY == -->
|
| 95 |
+
<style id="e5">
|
| 96 |
+
/* FLASH SALE HIGH ENERGY */
|
| 97 |
+
/* hero bg: radial-gradient rgba(148,0,255,0.25) + rgba(255,0,80,0.25) + #0a0a0a */
|
| 98 |
+
/* h1: clamp(52px,9vw,120px) weight:900 tracking:-5px leading:0.9 uppercase */
|
| 99 |
+
/* neon accent: color:#ff0050 text-shadow: 0 0 30px rgba(255,0,80,0.6) */
|
| 100 |
+
/* flash sale bar: bg:linear-gradient(90deg,#ff0000,#ff6b00,#ff0000) bg-size:200% animation:3s linear infinite */
|
| 101 |
+
/* countdown unit: bg:#232f3e color:#fff border-radius:6px padding:8px 12px */
|
| 102 |
+
/* countdown num: 22px weight:800 font:JetBrains Mono */
|
| 103 |
+
/* deal card: bg:rgba(255,255,255,0.05) border:1px solid rgba(255,255,255,0.1) border-radius:16px overflow:hidden */
|
| 104 |
+
/* sale badge: position:absolute top:10px right:10px bg:#ff0050 border-radius:999px 11px weight:900 */
|
| 105 |
+
.countdown-unit {
|
| 106 |
+
background: #232f3e;
|
| 107 |
+
color: #fff;
|
| 108 |
+
border-radius: 6px;
|
| 109 |
+
padding: 8px 12px;
|
| 110 |
+
text-align: center;
|
| 111 |
+
min-width: 50px;
|
| 112 |
+
}
|
| 113 |
+
.countdown-num { font-size: 22px; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1; }
|
| 114 |
+
</style>
|
| 115 |
+
|
| 116 |
+
<!-- == SHARED ECOMMERCE PATTERNS == -->
|
| 117 |
+
<style id="eshared">
|
| 118 |
+
/* PRODUCT GRID */
|
| 119 |
+
/* 4 cols: repeat(4,1fr) gap:20px */
|
| 120 |
+
/* 3 cols: repeat(3,1fr) gap:24px */
|
| 121 |
+
/* @media max-width:900px -> 2 cols */
|
| 122 |
+
/* @media max-width:500px -> 2 cols gap:12px */
|
| 123 |
+
|
| 124 |
+
/* RATING STARS */
|
| 125 |
+
/* color:#f59e0b font-size:13px */
|
| 126 |
+
/* count: 12px color:#888 */
|
| 127 |
+
|
| 128 |
+
/* WISHLIST HEART */
|
| 129 |
+
/* position:absolute top:12px right:12px */
|
| 130 |
+
/* w:32px h:32px bg:rgba(255,255,255,0.9) border-radius:50% */
|
| 131 |
+
/* backdrop-filter:blur(4px) hover:scale(1.15) */
|
| 132 |
+
|
| 133 |
+
/* CART TOAST */
|
| 134 |
+
/* position:fixed bottom:20px right:20px bg:#1a1a1a color:#fff */
|
| 135 |
+
/* border-radius:12px padding:14px 20px */
|
| 136 |
+
/* animation: translateY(20px) opacity:0 -> translateY(0) opacity:1 0.3s */
|
| 137 |
+
|
| 138 |
+
/* ADD TO CART BTN */
|
| 139 |
+
/* width:100% padding:12px bg:#0f0f0f color:#fff border:none border-radius:10px weight:600 */
|
| 140 |
+
/* hover: bg:#6366f1 transition:0.2s */
|
| 141 |
+
</style>
|