/* Sunwoven by Petra - Professional Website Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties (CSS Variables) */
:root {
    /* Colors inspired by handcrafted crystals and wire art */
    --primary-color: #2c5aa0;        /* Deep blue */
    --secondary-color: #8b9dc3;      /* Soft blue-gray */
    --accent-color: #d4af37;         /* Golden amber */
    --text-dark: #2c3e50;           /* Dark gray-blue */
    --text-light: #6c757d;          /* Medium gray */
    --background-light: #fafbfc;     /* Off-white */
    --background-white: #ffffff;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header and Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

nav h1 {
    margin-bottom: 0;
}

nav h1 a {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

nav ul li a {
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-sm);
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-light);
}

/* Buttons */
.cta-button,
.marketplace-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--background-white);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.marketplace-button:hover {
    background-color: var(--accent-color);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.marketplace-button.etsy {
    background-color: #ff6600;
}

.marketplace-button.goimagine {
    background-color: #4a90e2;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

/* Special handling for dragonfly product cards - use contain to show full dragonfly */
.product-card a[href*="dragonfly"] {
    position: relative;
    overflow: hidden;
}

.product-card a[href*="dragonfly"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.8);
    transform: scale(1.1);
    z-index: 1;
}

.product-card a[href*="ocean-breeze-dragonfly"]::before {
    background-image: url("/products/ocean-breeze-dragonfly/images/main.jpg");
}

.product-card a[href*="sunset-wings-dragonfly"]::before {
    background-image: url("/products/sunset-wings-dragonfly/images/main.jpg");
}

.product-card a[href*="dragonfly"] img {
    position: relative;
    object-fit: contain;
    background: transparent;
    z-index: 2;
}

/* Special handling for suncatcher product cards - use contain to show full suncatcher */
.product-card a[href*="golden-sun-mandala"],
.product-card a[href*="crescent-moon-dreams"],
.product-card a[href*="starlight-cascade"],
.product-card a[href*="sapphire-tassel-dreams"],
.product-card a[href*="crystal-clarity-linear"],
.product-card a[href*="mermaid-ocean-dreams"],
.product-card a[href*="seahorse-serenade"] {
    position: relative;
    overflow: hidden;
}

.product-card a[href*="golden-sun-mandala"]::before,
.product-card a[href*="crescent-moon-dreams"]::before,
.product-card a[href*="starlight-cascade"]::before,
.product-card a[href*="sapphire-tassel-dreams"]::before,
.product-card a[href*="crystal-clarity-linear"]::before,
.product-card a[href*="mermaid-ocean-dreams"]::before,
.product-card a[href*="seahorse-serenade"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.8);
    transform: scale(1.1);
    z-index: 1;
}

.product-card a[href*="golden-sun-mandala"]::before {
    background-image: url("/products/golden-sun-mandala/images/main.jpg");
}

.product-card a[href*="crescent-moon-dreams"]::before {
    background-image: url("/products/crescent-moon-dreams/images/main.jpg");
}

.product-card a[href*="starlight-cascade"]::before {
    background-image: url("/products/starlight-cascade/images/main.jpg");
}

.product-card a[href*="sapphire-tassel-dreams"]::before {
    background-image: url("/products/sapphire-tassel-dreams/images/main.jpg");
}

.product-card a[href*="crystal-clarity-linear"]::before {
    background-image: url("/products/crystal-clarity-linear/images/main.jpg");
}

.product-card a[href*="mermaid-ocean-dreams"]::before {
    background-image: url("/products/mermaid-ocean-dreams/images/main.jpg");
}

.product-card a[href*="seahorse-serenade"]::before {
    background-image: url("/products/seahorse-serenade/images/main.jpg");
}

.product-card a[href*="golden-sun-mandala"] img,
.product-card a[href*="crescent-moon-dreams"] img,
.product-card a[href*="starlight-cascade"] img,
.product-card a[href*="sapphire-tassel-dreams"] img,
.product-card a[href*="crystal-clarity-linear"] img,
.product-card a[href*="mermaid-ocean-dreams"] img,
.product-card a[href*="seahorse-serenade"] img {
    position: relative;
    object-fit: contain;
    background: transparent;
    z-index: 2;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    font-size: 1.3rem;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 var(--spacing-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.product-card .price {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
}

/* Sections */
section {
    margin-bottom: var(--spacing-xl);
}

section h2 {
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--primary-color);
}

.featured-products,
.product-category {
    margin-bottom: var(--spacing-xxl);
}

.about-preview {
    background-color: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.shop-links {
    text-align: center;
}

.marketplace-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Product Detail Pages */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.product-images img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.product-info h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.product-info .price {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.product-materials,
.product-dimensions {
    margin-bottom: var(--spacing-md);
}

.product-materials h3,
.product-dimensions h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.product-materials ul {
    list-style: none;
    padding-left: 0;
}

.product-materials li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
}

/* Forms */
form {
    background-color: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--background-light);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-sm);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-content h3 {
    color: var(--background-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-content a {
    color: var(--background-light);
    display: block;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition);
}

.footer-content a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    nav ul {
        gap: var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .marketplace-links {
        flex-direction: column;
        align-items: center;
    }
    
    .marketplace-button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* About Page Styles */
.about-story {
    background-color: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.maker-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-bottom: var(--spacing-lg);
}

.maker-photo {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.maker-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.maker-text p {
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .maker-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .maker-photo {
        max-width: 300px;
        margin: 0 auto;
    }
}

.workshop-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.workshop-image {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.workshop-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-caption {
    padding: var(--spacing-sm);
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0;
}

.craft-process,
.materials {
    background-color: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.materials ul {
    margin-left: var(--spacing-md);
}

.materials li {
    margin-bottom: var(--spacing-xs);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    font-size: 0.9rem;
}

.share-button:before {
    content: '';
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.share-button.pinterest {
    background-color: #bd081c;
    color: white;
}

.share-button.pinterest:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.219-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.690 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345-.091.379-.293 1.200-.332 1.368-.051.224-.166.271-.383.163-1.508-.704-2.451-2.915-2.451-4.685 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.357-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12.001 24c6.624 0 11.999-5.373 11.999-12C24 5.372 18.626.001 12.001.001z'/%3E%3C/svg%3E");
}

.share-button.facebook {
    background-color: #1877f2;
    color: white;
}

.share-button.facebook:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.share-button.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-button.twitter:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
}

.share-button.email {
    background-color: var(--text-light);
    color: white;
}

.share-button.email:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Print styles */
@media print {
    header,
    footer,
    .cta-button,
    .marketplace-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .product-card {
        break-inside: avoid;
    }
}