sozday-sayt-magazin-naimenov/style.css
2026-08-14 10:21:58 +00:00

697 lines
11 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #FFB800;
--primary-dark: #FF9500;
--secondary: #1A1A2E;
--accent: #00D4AA;
--light: #FFFFFF;
--gray: #F5F5F7;
--gray-dark: #86868B;
--text: #1D1D1F;
--success: #34C759;
--shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: var(--text);
line-height: 1.6;
background: var(--light);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.header {
background: var(--light);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 24px;
font-weight: 700;
color: var(--primary-dark);
}
.logo-icon {
font-size: 32px;
}
.nav {
display: flex;
gap: 30px;
}
.nav a {
text-decoration: none;
color: var(--text);
font-weight: 500;
transition: color 0.3s;
}
.nav a:hover {
color: var(--primary-dark);
}
.cart-btn {
position: relative;
background: var(--primary);
border: none;
padding: 10px 18px;
border-radius: 25px;
cursor: pointer;
font-size: 20px;
transition: transform 0.3s, box-shadow 0.3s;
}
.cart-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.cart-count {
position: absolute;
top: -5px;
right: -5px;
background: var(--secondary);
color: var(--light);
font-size: 12px;
font-weight: 700;
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.hero {
background: linear-gradient(135deg, var(--secondary) 0%, #16213E 100%);
color: var(--light);
padding: 100px 20px;
text-align: center;
}
.hero h1 {
font-size: clamp(32px, 5vw, 56px);
margin-bottom: 20px;
font-weight: 700;
}
.hero p {
font-size: clamp(18px, 2vw, 22px);
margin-bottom: 30px;
opacity: 0.9;
}
.btn-primary {
background: var(--primary);
color: var(--secondary);
padding: 15px 35px;
border: none;
border-radius: 30px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: all 0.3s;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.categories {
padding: 80px 20px;
background: var(--gray);
}
.categories h2 {
text-align: center;
font-size: 36px;
margin-bottom: 30px;
color: var(--secondary);
}
.category-filter {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 40px;
}
.filter-btn {
background: var(--light);
border: 2px solid var(--gray-dark);
padding: 10px 25px;
border-radius: 25px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s;
}
.filter-btn:hover {
border-color: var(--primary);
color: var(--primary-dark);
}
.filter-btn.active {
background: var(--primary);
border-color: var(--primary);
color: var(--secondary);
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 30px;
}
.product-card {
background: var(--light);
border-radius: 15px;
overflow: hidden;
box-shadow: var(--shadow);
transition: all 0.3s;
cursor: pointer;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}
.product-image {
width: 100%;
height: 250px;
object-fit: cover;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 80px;
}
.product-info {
padding: 20px;
}
.product-category {
color: var(--gray-dark);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 8px;
}
.product-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 10px;
color: var(--secondary);
}
.product-description {
font-size: 14px;
color: var(--gray-dark);
margin-bottom: 15px;
line-height: 1.5;
}
.product-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.product-price {
font-size: 22px;
font-weight: 700;
color: var(--primary-dark);
}
.btn-add {
background: var(--primary);
color: var(--secondary);
border: none;
padding: 10px 20px;
border-radius: 20px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.btn-add:hover {
background: var(--primary-dark);
transform: scale(1.05);
}
.about {
padding: 80px 20px;
background: var(--light);
}
.about h2 {
text-align: center;
font-size: 36px;
margin-bottom: 50px;
color: var(--secondary);
}
.about-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.about-card {
text-align: center;
padding: 30px;
background: var(--gray);
border-radius: 15px;
transition: all 0.3s;
}
.about-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
}
.about-icon {
font-size: 48px;
margin-bottom: 15px;
display: block;
}
.about-card h3 {
font-size: 20px;
margin-bottom: 10px;
color: var(--secondary);
}
.about-card p {
color: var(--gray-dark);
line-height: 1.6;
}
.certificates {
padding: 80px 20px;
background: var(--secondary);
color: var(--light);
}
.certificates h2 {
text-align: center;
font-size: 36px;
margin-bottom: 50px;
}
.cert-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.cert-card {
background: rgba(255, 255, 255, 0.1);
padding: 40px 30px;
border-radius: 15px;
text-align: center;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.cert-icon {
font-size: 60px;
margin-bottom: 20px;
display: block;
}
.cert-card h3 {
font-size: 22px;
margin-bottom: 10px;
color: var(--primary);
}
.cert-card p {
opacity: 0.9;
line-height: 1.6;
}
.contacts {
padding: 80px 20px;
background: var(--gray);
}
.contacts h2 {
text-align: center;
font-size: 36px;
margin-bottom: 50px;
color: var(--secondary);
}
.contacts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.contact-card {
background: var(--light);
padding: 30px;
border-radius: 15px;
text-align: center;
box-shadow: var(--shadow);
}
.contact-icon {
font-size: 40px;
margin-bottom: 15px;
display: block;
}
.contact-card h3 {
font-size: 20px;
margin-bottom: 10px;
color: var(--secondary);
}
.contact-card p {
color: var(--gray-dark);
}
.contact-card a {
color: var(--primary-dark);
text-decoration: none;
font-weight: 600;
}
.footer {
background: var(--secondary);
color: var(--light);
text-align: center;
padding: 30px 20px;
}
.cart-modal,
.checkout-modal,
.success-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
}
.cart-modal.active,
.checkout-modal.active,
.success-modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.cart-overlay,
.checkout-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.cart-content,
.checkout-content {
position: relative;
background: var(--light);
width: 90%;
max-width: 600px;
max-height: 80vh;
border-radius: 20px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.cart-header,
.checkout-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--gray);
}
.cart-header h2,
.checkout-header h2 {
font-size: 24px;
color: var(--secondary);
}
.cart-close,
.checkout-close {
background: none;
border: none;
font-size: 32px;
cursor: pointer;
color: var(--gray-dark);
transition: color 0.3s;
}
.cart-close:hover,
.checkout-close:hover {
color: var(--text);
}
.cart-items {
flex: 1;
overflow-y: auto;
padding: 20px;
}
.cart-item {
display: flex;
gap: 15px;
padding: 15px;
background: var(--gray);
border-radius: 10px;
margin-bottom: 15px;
}
.cart-item-image {
width: 80px;
height: 80px;
border-radius: 8px;
background: var(--light);
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
}
.cart-item-info {
flex: 1;
}
.cart-item-title {
font-weight: 600;
margin-bottom: 5px;
color: var(--secondary);
}
.cart-item-price {
color: var(--primary-dark);
font-weight: 700;
}
.cart-item-quantity {
display: flex;
align-items: center;
gap: 10px;
margin-top: 8px;
}
.qty-btn {
background: var(--primary);
border: none;
width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
font-weight: 700;
color: var(--secondary);
}
.cart-item-remove {
background: none;
border: none;
color: #FF3B30;
cursor: pointer;
font-size: 20px;
margin-left: auto;
}
.cart-footer {
padding: 20px;
border-top: 1px solid var(--gray);
}
.cart-total {
display: flex;
justify-content: space-between;
font-size: 20px;
font-weight: 700;
margin-bottom: 20px;
color: var(--secondary);
}
.cart-total-price {
color: var(--primary-dark);
}
.btn-checkout,
.btn-submit {
width: 100%;
padding: 15px;
font-size: 16px;
}
.checkout-content {
max-height: 90vh;
overflow-y: auto;
}
.checkout-form {
padding: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--secondary);
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 2px solid var(--gray);
border-radius: 10px;
font-size: 15px;
font-family: inherit;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
}
.form-group textarea {
min-height: 80px;
resize: vertical;
}
.order-summary {
background: var(--gray);
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
}
.order-summary h3 {
margin-bottom: 15px;
color: var(--secondary);
}
.order-total {
display: flex;
justify-content: space-between;
font-size: 18px;
font-weight: 700;
color: var(--primary-dark);
}
.success-content {
background: var(--light);
padding: 50px 30px;
border-radius: 20px;
text-align: center;
max-width: 400px;
width: 90%;
}
.success-icon {
font-size: 80px;
display: block;
margin-bottom: 20px;
}
.success-content h2 {
font-size: 28px;
margin-bottom: 15px;
color: var(--secondary);
}
.success-content p {
color: var(--gray-dark);
margin-bottom: 25px;
line-height: 1.6;
}
@media (max-width: 768px) {
.nav {
display: none;
}
.hero {
padding: 60px 20px;
}
.categories,
.about,
.certificates,
.contacts {
padding: 50px 20px;
}
.products-grid {
grid-template-columns: 1fr;
}
}