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

body {
    background-color: #fabeeb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    /* Replace the image with polka dot pattern */
    background-image: radial-gradient(#ffffff59 10px, transparent 10px);
    background-size: 50px 50px; /* Controls the spacing between dots */
    background-position: 0 0; /* Starting position of the pattern */
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 0.5rem;
    width: 100%;
    text-align: center;
}

#logo {
    max-height: 120px; /* Doubled the size from 60px to 120px */
    margin: 0 auto;
    display: block;
}

/* Hamburger menu styling */
nav {
    position: relative;
    padding: 0;
    margin-top: -15px; /* Move the nav up */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Gallery caption styles */
.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}



.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    text-align: center;
    color: #bb5476;
    font-weight: 600;
    /* Make captions always visible */
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Gallery grid styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fixed 2 columns */
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* Mobile adjustment for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.hamburger-menu {
    cursor: pointer;
    display: block;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    width: fit-content;
    margin: 0 auto;
    border: 2px solid #f8a5c2;
}

.hamburger-icon {
    width: 40px; /* Increased from 30px */
    height: 32px; /* Increased from 24px */
    position: relative;
    margin: 0 auto;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 4px; /* Increased from 3px */
    width: 100%;
    background: #e66a93; /* Changed from #333 to match theme */
    border-radius: 4px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 14px; /* Adjusted from 10px */
}

.hamburger-icon span:nth-child(3) {
    top: 28px; /* Adjusted from 20px */
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 245, 250, 0.95);
    padding: 20px 0;
    list-style: none;
    margin: 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 99;
    border-radius: 0 0 15px 15px;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    padding: 10px 20px;
    text-align: center;
}

.nav-menu a {
    text-decoration: none;
    color: #e66a93;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #d04477;
}

/* Animation for hamburger to X */
.hamburger-icon.active span:nth-child(1) {
    top: 14px; /* Adjusted from 10px */
    transform: rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    top: 14px; /* Adjusted from 10px */
    transform: rotate(-45deg);
}

/* Main content styling */
main {
    max-width: 1200px;
    margin: 30px auto 0; /* Added 30px top margin to move content down */
    padding: 2rem;
    text-align: center;
    width: 100%;
}

/* Card styling */
.intro-card, .outro-card {
    background-color: #fff8f8;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #f8a5c2;
}

.intro-card h3 {
    color: #e66a93;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Product grid styling */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-top: 4px solid #f8a5c2;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-card h4 {
    color: #e66a93;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.outro-card {
    background-color: #fff0f5;
}

.note {
    font-style: italic;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Section title styling */
.section-title {
    font-size: 2.2rem; /* Increased from previous size */
    color: #e66a93;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Made the underline longer to match the larger text */
    height: 3px;
    background-color: #f8a5c2;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    width: 100%;
    background-color: rgba(255, 245, 250, 0.95);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

footer p {
    color: #e66a93;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    main {
        padding: 1.5rem;
        width: 100%;
        margin: 30px auto 0;
    }
    
    /* Fix for logo on mobile */
    #logo {
        margin: 0 auto;
        max-width: 80%;
        transform: none;
    }
    
    header {
        align-items: center;
        padding: 2rem 1rem 0.5rem;
    }
    
    .hamburger-menu {
        margin: 0 auto;
        transform: scale(1.15);
    }
    
    /* Fix product card centering */
    .product-card {
        width: 100%;
        margin: 0 auto 2rem;
        text-align: center;
    }
    
    .product-card p {
        text-align: center;
        padding: 0;
    }
    
    /* Center intro and outro cards */
    .intro-card, .outro-card {
        width: 100%;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    footer {
        width: 100%;
        padding: 1.5rem 1rem;
    }
}

/* Update these gallery caption styles in your CSS file */

/* Instagram embed specific styling */
.instagram-container {
    grid-column: span 2;
    grid-row: span 2;
    height: auto !important;
    aspect-ratio: auto !important;
    min-height: 450px;
}

.instagram-container .instagram-media {
    background-color: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 100% !important;
    width: 100% !important;
}

/* For mobile layout adjustment */
@media (max-width: 768px) {
    .instagram-container {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 400px;
    }
}

/* Specific adjustments for very small screens */
@media (max-width: 400px) {
    #logo {
        max-width: 75%;
    }
    
    main {
        padding: 1rem 0.5rem;
        width: 100%;
    }
    
    .intro-card, .outro-card, .product-card {
        padding: 1.25rem;
        width: 100%;
    }
}

/* Add this to your existing CSS file */

/* Footer-specific styles */
.footer-social {
    margin-top: 1rem;
}

.footer-social img {
    width: 24px; /* Adjust the size as needed */
    height: 24px; /* Adjust the size as needed */
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
}

/* Sold Out Styles */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.sold-out-button {
    background-color: #999 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.sold-out-button:hover {
    background-color: #999 !important;
    transform: none !important;
}

.product-image {
    position: relative;
}

/* Admin sold out checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.sold-out-status {
    color: #d32f2f;
    font-weight: 500;
}