503 lines
7.6 KiB
CSS
503 lines
7.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary: #c49b66;
|
|
--primary-dark: #a67c52;
|
|
--text: #2d2d2d;
|
|
--text-light: #666;
|
|
--bg: #faf9f7;
|
|
--white: #ffffff;
|
|
--border: #e5e5e5;
|
|
--shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.header {
|
|
background: var(--white);
|
|
box-shadow: var(--shadow);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 15px 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
gap: 30px;
|
|
}
|
|
|
|
.nav a {
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.nav a:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.cart-btn {
|
|
background: var(--primary);
|
|
color: var(--white);
|
|
border: none;
|
|
padding: 10px 18px;
|
|
border-radius: 25px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.cart-btn:hover {
|
|
background: var(--primary-dark);
|
|
}
|
|
|
|
.cart-count {
|
|
position: absolute;
|
|
top: -5px;
|
|
right: -5px;
|
|
background: #e74c3c;
|
|
color: var(--white);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
padding: 3px 7px;
|
|
border-radius: 50%;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: var(--white);
|
|
padding: 100px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: clamp(32px, 5vw, 56px);
|
|
margin-bottom: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: clamp(16px, 2vw, 20px);
|
|
margin-bottom: 30px;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: var(--white);
|
|
padding: 14px 32px;
|
|
border: none;
|
|
border-radius: 30px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
transition: background 0.3s, transform 0.2s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-dark);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-full {
|
|
width: 100%;
|
|
}
|
|
|
|
section {
|
|
padding: 80px 20px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: clamp(28px, 4vw, 42px);
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.products-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.product-card {
|
|
background: var(--white);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
transition: transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.product-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.product-image {
|
|
width: 100%;
|
|
height: 280px;
|
|
object-fit: cover;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.product-info {
|
|
padding: 20px;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.product-desc {
|
|
font-size: 14px;
|
|
color: var(--text-light);
|
|
margin-bottom: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.product-price {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.add-to-cart {
|
|
width: 100%;
|
|
background: var(--text);
|
|
color: var(--white);
|
|
border: none;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.add-to-cart:hover {
|
|
background: var(--primary);
|
|
}
|
|
|
|
.features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 40px;
|
|
}
|
|
|
|
.feature {
|
|
text-align: center;
|
|
padding: 30px;
|
|
background: var(--white);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.feature-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.feature h3 {
|
|
font-size: 20px;
|
|
margin-bottom: 10px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.feature p {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.delivery-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.delivery-item {
|
|
background: var(--white);
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
}
|
|
|
|
.delivery-item h3 {
|
|
font-size: 20px;
|
|
margin-bottom: 10px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.delivery-item p {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.contacts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.contact-item {
|
|
background: var(--white);
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
}
|
|
|
|
.contact-item strong {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.contact-item a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.footer {
|
|
background: var(--text);
|
|
color: var(--white);
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.cart-modal,
|
|
.checkout-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.cart-modal.active,
|
|
.checkout-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.cart-content,
|
|
.checkout-content {
|
|
background: var(--white);
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.cart-header,
|
|
.checkout-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--white);
|
|
z-index: 10;
|
|
}
|
|
|
|
.cart-header h2,
|
|
.checkout-header h2 {
|
|
font-size: 22px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 32px;
|
|
cursor: pointer;
|
|
color: var(--text-light);
|
|
line-height: 1;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.cart-items {
|
|
padding: 20px;
|
|
}
|
|
|
|
.cart-item {
|
|
display: flex;
|
|
gap: 15px;
|
|
padding: 15px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.cart-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.cart-item-image {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.cart-item-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.cart-item-name {
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.cart-item-price {
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cart-item-remove {
|
|
background: #e74c3c;
|
|
color: var(--white);
|
|
border: none;
|
|
padding: 5px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.cart-footer {
|
|
padding: 20px;
|
|
border-top: 1px solid var(--border);
|
|
position: sticky;
|
|
bottom: 0;
|
|
background: var(--white);
|
|
}
|
|
|
|
.cart-total {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 15px;
|
|
text-align: right;
|
|
}
|
|
|
|
.checkout-form {
|
|
padding: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-group textarea {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.order-summary {
|
|
background: var(--bg);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.order-summary h4 {
|
|
margin-bottom: 10px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.order-summary-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 5px 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.empty-cart {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav {
|
|
display: none;
|
|
}
|
|
|
|
.header-inner {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
section {
|
|
padding: 50px 20px;
|
|
}
|
|
|
|
.hero {
|
|
padding: 60px 20px;
|
|
}
|
|
}
|