File size: 4,859 Bytes
9fb744d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!-- templates/_layout.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>{% block title %}EcoTry{% endblock %}</title>

  <style>
    :root{
      --eco-deep: #0b3d2e;   /* logo deep green */
      --eco-lime: #7bdc3b;   /* logo lime */
      --bg0: #05070b;
      --bg1: #07110d;
      --panel: rgba(255,255,255,0.06);
      --panel2: rgba(255,255,255,0.10);
      --text: rgba(255,255,255,0.92);
      --muted: rgba(255,255,255,0.68);
      --line: rgba(255,255,255,0.12);
      --shadow: 0 18px 60px rgba(0,0,0,.35);
      --r: 18px;
    }
  .logo-box{
    display:flex;
    align-items:center;
    gap:18px;

    padding:18px 22px;
    margin-bottom:18px;

    border-radius:20px;
}

.logo-box img{
    width:90px;
    height:90px;

    object-fit:contain;

    border-radius:18px;
    background:#f5f5f5;

    padding:8px;
}

.logo-box h2{
    margin:0;
    font-size:28px;
    font-weight:800;
    line-height:1.1;
}

.logo-box p{
    margin-top:6px;
    font-size:15px;
    color:rgba(255,255,255,0.75);
}

    *{ box-sizing: border-box; }
    body{
      margin: 0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
      color: var(--text);
      background:
        radial-gradient(1200px 600px at 10% 0%, rgba(123,220,59,0.20), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(11,61,46,0.35), transparent 55%),
        linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
      min-height: 100vh;
    }

    a{ color: inherit; text-decoration: none; }

    .wrap{ max-width: 1240px; margin: 0 auto; padding: 22px 18px 36px; }

    .nav{
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      background: rgba(0,0,0,0.25);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      position: sticky; top: 14px; z-index: 10;
      backdrop-filter: blur(12px);
    }
    .brand{ display:flex; align-items:center; gap:12px; }
    .brand img{ width: 46px; height: 46px; object-fit: contain; }
    .brand h1{ font-size: 16px; margin: 0; letter-spacing: 0.3px; }
    .brand p{ margin: 2px 0 0; font-size: 12px; color: var(--muted); }

    .nav-actions{ display:flex; gap:10px; align-items:center; }
    .chip{
      font-size: 12px;
      padding: 9px 11px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
      color: var(--muted);
      white-space: nowrap;
      display:flex; gap:8px; align-items:center;
    }
    .chip strong{ color: rgba(255,255,255,0.92); }

    .btn{
      border: 1px solid rgba(123,220,59,0.38);
      background: rgba(123,220,59,0.14);
      color: rgba(255,255,255,0.92);
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 13px;
      cursor: pointer;
      transition: .15s ease;
    }
    .btn:hover{ background: rgba(123,220,59,0.20); }

    .btn-ghost{
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
      color: rgba(255,255,255,0.90);
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 13px;
      cursor: pointer;
      transition: .15s ease;
      text-align: center;
    }
    .btn-ghost:hover{ background: rgba(255,255,255,0.07); }

    .panel{
      border: 1px solid var(--line);
      background: rgba(0,0,0,0.22);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    .flash-wrap{ margin-top: 14px; display:grid; gap: 8px; }
    .flash{
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.05);
      font-size: 13px;
      color: rgba(255,255,255,0.86);
    }
    .flash.success{ border-color: rgba(123,220,59,0.35); background: rgba(123,220,59,0.08); }
    .flash.error{ border-color: rgba(255,93,93,0.35); background: rgba(255,93,93,0.08); }

    @media (max-width: 720px){
      .brand p{ display:none; }
    }
  </style>

  {% block head %}{% endblock %}
</head>

<body>
      <div class="nav-actions">
        <a class="chip" href="{{ url_for('cart_page') }}">
          🛒 <strong>{{ cart_items_count }}</strong>
          <span>Cart</span>
        </a>
        <a class="btn-ghost" href="/">Shop</a>
      </div>
    </div>

    {% with messages = get_flashed_messages(with_categories=true) %}
      {% if messages %}
        <div class="flash-wrap">
          {% for category, message in messages %}
            <div class="flash {{ category }}">{{ message }}</div>
          {% endfor %}
        </div>
      {% endif %}
    {% endwith %}

    {% block body %}{% endblock %}
  </div>
</body>
</html>