/* Sage and cream themed styles with flower and bee decorations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to content link for keyboard navigation */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: #6b8e71;
    color: #FAF6E4;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    outline: 3px solid #4a5f4d;
    outline-offset: 2px;
}

/* Cream gradient background */
body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #4a5f4d;
    background: linear-gradient(135deg, #f5f3f0 0%, #ece8e3 100%);
    min-height: 100vh;
}

/* Sage header with flower decoration */
header {
    background: linear-gradient(135deg, #A8D8B9 0%, #FAF6E4 100%);
    color: #6b8e71;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
}

.header-subtitle {
    color: #6b8e71;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
    opacity: 0.85;
}

.header-decoration {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: #8bbc8a20;
    padding: 1rem;
    border-radius: 10px;
}

nav a {
    color: #3d5343;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: #A8D8B9;
}

nav a:hover {
    background: #FAF6E4;
    color: #3d5343;
}

nav a:focus {
    outline: 3px solid #4a5f4d;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(107, 142, 113, 0.2);
}

nav a.active {
    background: #4a5f4d;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(107, 142, 113, 0.4);
    font-weight: 700;
    transform: scale(1.05);
    cursor: default;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

section h2 {
    font-family: 'Merriweather', Georgia, serif;
    text-align: center;
    font-size: 2.2rem;
    color: #6b8e71;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6b8e71, #8bbc8a);
    border-radius: 2px;
}

article {
    background: #FAF6E4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(107, 142, 113, 0.08);
    margin-bottom: 2rem;
    border: 1.5px solid #A8D8B9;
    transition: all 0.3s ease;
    position: relative;
    padding: 2rem;
}

article h2 {
    font-family: 'Merriweather', Georgia, serif;
    color: #6b8e71;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    margin-left: 1rem;
    font-weight: 700;
}

article p {
    color: #4a5f4d;
    font-size: 1.05rem;
    line-height: 1.7;
}

article:hover {
    box-shadow: 0 15px 40px rgba(107, 142, 113, 0.12);
    border-color: #6b8e71;
}

article img {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
}

article img:focus {
    outline: 3px solid #4a5f4d;
    outline-offset: 2px;
}

article img.small-image {
    max-width: 22.5%;
}

.article-decoration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
}

footer {
    background: linear-gradient(135deg, #A8D8B9 0%, #6b8e71 100%);
    color: #FAF6E4;
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 2rem;
    border-top: 2px solid #8bbc8a;
    position: relative;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

button, .btn {
    background: #5a7c58;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(90, 124, 88, 0.3);
    margin: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

button:hover, .btn:hover {
    background: #4a5f4d;
    color: #FFFFFF;
}

button:focus, .btn:focus {
    outline: 3px solid #4a5f4d;
    outline-offset: 2px;
}

.flower-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.bee-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* Image Modal/Popover Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    text-shadow: none;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(107, 142, 113, 0.95);
    border-color: white;
    transform: scale(1.1);
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    article img {
        max-width: 100%;
        display: block;
        margin: 1rem auto;
    }
    
    article img.small-image {
        max-width: 50%;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 40px;
        height: 40px;
    }
}

/* Shop page styles */
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.product-tile {
    background: #FAF6E4;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(107, 142, 113, 0.08);
    border: 1.5px solid #A8D8B9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-tile:hover {
    box-shadow: 0 15px 40px rgba(107, 142, 113, 0.12);
    border-color: #6b8e71;
    transform: translateY(-5px);
}

.product-tile h2 {
    font-family: 'Merriweather', Georgia, serif;
    color: #6b8e71;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-details {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.product-description {
    color: #4a5f4d;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-price {
    color: #6b8e71;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.product-quantity {
    color: #8bbc8a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-availability {
    color: #8bbc8a;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    margin: 1rem 0;
}

.product-info {
    color: #4a5f4d;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.product-tile .btn {
    display: inline-block;
    text-decoration: none;
    margin-top: auto;
}