:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--bg-color: #ffffff;
--bg-secondary: #f8fafc;
--text-color: #1e293b;
--text-secondary: #64748b;
--border-color: #e2e8f0;
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--card-bg: #ffffff;
--header-bg: rgba(255, 255, 255, 0.95);
--transition: all 0.3s ease;
}
[data-theme="dark"] {
--bg-color: #0f172a;
--bg-secondary: #1e293b;
--text-color: #f1f5f9;
--text-secondary: #94a3b8;
--border-color: #334155;
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
--card-bg: #1e293b;
--header-bg: rgba(15, 23, 42, 0.95);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
transition: var(--transition);
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 20px;
} .site-header {
background: var(--header-bg);
backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow);
transition: var(--transition);
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
.site-branding h1 {
font-size: 1.75rem;
font-weight: 700;
color: var(--primary-color);
margin: 0;
}
.site-branding a {
text-decoration: none;
color: inherit;
} .main-navigation {
display: flex;
align-items: center;
gap: 2rem;
}
.main-navigation ul {
display: flex;
list-style: none;
gap: 2rem;
margin: 0;
}
.main-navigation a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
transition: var(--transition);
position: relative;
}
.main-navigation a:hover {
color: var(--primary-color);
}
.main-navigation a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--primary-color);
transition: var(--transition);
}
.main-navigation a:hover::after {
width: 100%;
} .theme-switcher {
display: flex;
gap: 0.5rem;
background: var(--bg-secondary);
padding: 0.5rem;
border-radius: 50px;
border: 1px solid var(--border-color);
}
.theme-btn {
background: transparent;
border: none;
padding: 0.5rem 1rem;
border-radius: 50px;
cursor: pointer;
color: var(--text-secondary);
font-size: 0.875rem;
font-weight: 500;
transition: var(--transition);
}
.theme-btn.active {
background: var(--primary-color);
color: white;
}
.theme-btn:hover:not(.active) {
color: var(--text-color);
} .search-bar {
background: var(--bg-secondary);
padding: 2rem 0;
margin-bottom: 2rem;
}
.search-form {
max-width: 600px;
margin: 0 auto;
position: relative;
}
.search-form input[type="search"] {
width: 100%;
padding: 1rem 3rem 1rem 1.5rem;
border: 2px solid var(--border-color);
border-radius: 50px;
background: var(--card-bg);
color: var(--text-color);
font-size: 1rem;
transition: var(--transition);
}
.search-form input[type="search"]:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-form button {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
background: var(--primary-color);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 50px;
cursor: pointer;
font-weight: 600;
transition: var(--transition);
}
.search-form button:hover {
background: var(--primary-hover);
} .products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 2rem;
margin: 2rem 0;
}
.product-card {
background: var(--card-bg);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid var(--border-color);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.product-image {
width: 100%;
height: 280px;
object-fit: cover;
}
.product-info {
padding: 1.5rem;
}
.product-title {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-color);
}
.product-price {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 1rem;
}
.add-to-cart-button {
width: 100%;
padding: 0.75rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.add-to-cart-button:hover {
background: var(--primary-hover);
} .page-content {
padding: 3rem 0;
}
.page-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 2rem;
color: var(--text-color);
}
.content-section {
background: var(--card-bg);
padding: 2rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
} .contact-form {
max-width: 600px;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text-color);
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 0.75rem;
border: 2px solid var(--border-color);
border-radius: 8px;
background: var(--bg-color);
color: var(--text-color);
font-family: inherit;
transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
.submit-button {
background: var(--primary-color);
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: var(--transition);
}
.submit-button:hover {
background: var(--primary-hover);
} .site-footer {
background: var(--bg-secondary);
padding: 3rem 0 1rem;
margin-top: 4rem;
border-top: 1px solid var(--border-color);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-section h3 {
margin-bottom: 1rem;
color: var(--text-color);
}
.footer-section ul {
list-style: none;
}
.footer-section a {
color: var(--text-secondary);
text-decoration: none;
transition: var(--transition);
}
.footer-section a:hover {
color: var(--primary-color);
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
color: var(--text-secondary);
} @media (max-width: 768px) {
.header-inner {
flex-direction: column;
gap: 1rem;
}
.main-navigation {
flex-direction: column;
gap: 1rem;
}
.main-navigation ul {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.products-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
.page-title {
font-size: 2rem;
}
}