/* JW Knitique - Clean, friendly hat business styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

/* Header */
header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    font-style: italic;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* About section */
.about {
    text-align: center;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #D2691E;
}

.about p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hat gallery */
.hats-gallery {
    display: grid;
    gap: 2rem;
}

.hat {
    display: flex;
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hat:hover {
    transform: translateY(-5px);
}

.hat.sold {
    opacity: 0.7;
    background: #f0f0f0;
}

.hat-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 2rem;
    border: 2px solid #8B4513;
}

.hat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hat-info h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hat-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #D2691E;
    margin-bottom: 1rem;
}

.order-btn {
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px;
}

.order-btn:hover {
    background: linear-gradient(135deg, #32CD32, #228B22);
    transform: scale(1.05);
}

.sold-badge {
    background: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    max-width: 200px;
}

/* Payment section */
.payment {
    text-align: center;
    background: linear-gradient(135deg, #E6E6FA, #DDA0DD);
    padding: 2rem;
    border-radius: 15px;
    color: #4B0082;
}

.venmo-qr {
    max-width: 200px;
    height: auto;
    margin: 1rem 0;
    border: 3px solid #4B0082;
    border-radius: 10px;
}

/* Contact form */
.contact {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #8B4513;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #8B4513;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 5px rgba(210, 105, 30, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #D2691E, #8B4513);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #D2691E;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: white;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    color: #333;
    max-width: 500px;
    margin: 0 auto;
}

.lightbox-info h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(139, 69, 19, 0.8);
}

.hat-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hat-image:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .hat {
        flex-direction: column;
        text-align: center;
    }
    
    .hat-image {
        width: 100%;
        max-width: 300px;
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .order-btn, .sold-badge {
        max-width: none;
    }
}