/*
    --------------------------------------------------------------------------
    Rustic Rings Store - Global Stylesheet
    --------------------------------------------------------------------------
    This file contains all the CSS for the website, following a clean and
    elegant design philosophy with a focus on responsiveness and performance.
    - Author: Gemini
    - Date: August 7, 2025
    - Version: 1.0
*/

/* --- 1. Global Reset & Variables --- */
:root {
    --primary-color: #5d4037; /* Dark brown for a rustic touch */
    --secondary-color: #8d6e63; /* Lighter brown for accents */
    --accent-color: #e0ac69; /* Gold-like accent for elegance */
    --text-color: #333333;
    --background-color: #ffffff;
    --light-background: #f5f5f5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.page-title, .section-title, .shop-page-title {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.shop-page-title {
    font-size: 2.2rem;
}

/* --- 3. Buttons & CTAs --- */
.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--background-color);
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
}

.btn-primary:hover {
    background-color: #c98e4d;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* --- 4. Header & Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--light-background);
    background-color: var(--background-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: var(--spacing-md);
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
}

/* --- 5. Homepage Sections --- */

/* Banner */
.banner {
    background-image: url('https://via.placeholder.com/1920x600/f5f5f5/5d4037?text=Engaging+Homepage+Banner+Image');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--background-color);
    position: relative;
    padding: var(--spacing-sm);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 3.5rem;
    color: var(--background-color);
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* Product Grid */
.product-showcase, .shop-main {
    padding: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background-color: var(--background-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    padding: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xs);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
    height: 50px; /* Consistent height for descriptions */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.view-all-products {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* --- 6. Other Pages --- */
.contact-main, .privacy-main {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.contact-info, .policy-content {
    background-color: var(--light-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    line-height: 1.8;
}

.contact-details {
    margin-top: var(--spacing-md);
}

/* --- 7. Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.footer-section p, .footer-nav a {
    font-size: 0.9rem;
    color: var(--light-background);
    margin-bottom: var(--spacing-xs);
}

.footer-nav {
    list-style: none;
}

.footer-nav a:hover {
    color: var(--background-color);
}

.payment-badges img {
    max-width: 150px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
}

.disclaimer {
    font-style: italic;
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* --- 8. Responsive Design (Mobile First) --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .header {
        flex-direction: column;
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .logo {
        margin-bottom: var(--spacing-sm);
    }

    .nav-list {
        margin-left: 0;
    }
    
    .nav-list li {
        margin: 0 var(--spacing-xs);
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-description {
        height: auto;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: var(--spacing-md);
    }

    .footer-nav {
        text-align: center;
        padding-left: 0;
    }
}
