34951-vm/assets/css/style.css
2025-10-13 11:30:16 +00:00

219 lines
4.4 KiB
CSS

/* assets/css/style.css */
:root {
--primary-color: #D87533; /* A warm, pumpkin orange */
--secondary-color: #C74E21; /* A deeper, persimmon red-orange */
--accent-color: #8A4D22; /* A rustic brown */
--background-color: #FFF8F0; /* A light, creamy off-white */
--text-color: #4D4D4D; /* A dark gray for text */
--heading-font: 'Playfair Display', serif;
--body-font: 'Lato', sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: var(--body-font);
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
/* Header */
.main-header {
background: #047857;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
padding: 1rem 0;
}
.main-header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.shop-name {
font-family: var(--heading-font);
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
text-decoration: none;
}
.main-nav a {
margin: 0 1rem;
text-decoration: none;
color: var(--text-color);
font-weight: 700;
transition: color 0.3s ease;
}
.main-nav a:hover {
color: var(--primary-color);
}
/* Hero Section */
.hero {
background: linear-gradient(rgba(216, 117, 51, 0.1), rgba(255, 248, 240, 0.1)), url('https://bonnieplants.com/cdn/shop/articles/fall-harvest-iStock-488405268_b90e0227-7eda-4aeb-b7db-e8d25b208b8c.jpg?v=1752860226');
background-size: cover;
background-position: center;
color: white;
text-align: center;
padding: 6rem 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.hero h1 {
font-family: var(--heading-font);
font-size: 4rem;
margin: 0 0 1rem;
color: #fff;
text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero p {
font-size: 1.25rem;
margin-bottom: 2rem;
max-width: 600px;
text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero-text-box {
background-color: rgba(0, 0, 0, 0.5);
padding: 2rem;
border-radius: 10px;
margin-bottom: 2rem;
}
.cta-button {
background-color: var(--primary-color);
color: white;
padding: 1rem 2.5rem;
text-decoration: none;
font-weight: 700;
border-radius: 50px;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-button:hover {
background-color: var(--secondary-color);
transform: translateY(-3px);
}
/* Product Section */
.product-section-background {
background-color: #103900;
color: #F0F0F0;
}
.product-section-background .product-section h2 {
color: #F4A261;
}
.product-section-background .product-info p {
color: #4D4D4D;
}
.product-section {
padding: 4rem 0;
text-align: center;
}
.product-section + .product-section {
padding-top: 0;
}
.product-section h2 {
font-family: var(--heading-font);
font-size: 2.5rem;
margin-bottom: 3rem;
color: var(--accent-color);
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.product-card {
background: #D1FAE5;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.07);
overflow: hidden;
text-align: left;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.product-info {
padding: 1.5rem;
}
.product-info h3 {
font-family: var(--heading-font);
font-size: 1.5rem;
margin: 0 0 0.5rem;
color: var(--secondary-color);
}
.product-info p {
margin: 0 0 1rem;
}
.product-price {
font-size: 1.2rem;
font-weight: 700;
color: var(--primary-color);
}
/* Footer */
.main-footer {
background-color: var(--accent-color);
color: var(--background-color);
text-align: center;
padding: 2rem 0;
}
#music-toggle {
position: fixed;
bottom: 20px;
right: 20px;
cursor: pointer;
z-index: 1000;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
#music-toggle svg {
width: 32px;
height: 32px;
stroke: white;
}