:root {
    --product-color: #FFF8F3;

}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header & Navigation */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 101;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 2.5px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -2.5px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #666;
}

.nav-links a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #666;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Products Section */
.products {
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.product-card {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.product-card.flipped .product-flip-container {
    transform: rotateY(180deg);
}

.product-card-front {
    position: relative;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var( --product-color);
    border: 2px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.product-card.flipped .product-card-front {
    visibility: hidden;
    pointer-events: none;
}

.product-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var( --product-color);
    border: 2px solid #333;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    transform: rotateY(180deg);
    padding: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
}

.product-card:not(.flipped) .product-card-back {
    pointer-events: none;
}


.product-card.flipped .product-card-back {
    display: flex;
}

.product-card-back h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
}

.product-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive font sizes for product description */
@media (max-width: 1200px) {
    .product-card-back h3 {
        font-size: 1.3rem;
    }
    .product-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .product-card-back h3 {
        font-size: 0.875rem;
    }
    .product-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product-card-back h3 {
        font-size: 0.8rem
    }
    .product-description {
        font-size: 0.8rem;
    }
}

.product-card:hover:not(.flipped) .product-card-front {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #FFF8F3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    flex-grow: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    margin: 0.5rem;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var( --product-color);
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
}

.product-card h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    text-align: center;
    letter-spacing: 0.1rem;
}

.price {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    padding: 0 1rem 1rem;
}

.product-btn {
    width: 100%;
    border: none;
    background-color: var(--product-color);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-btn:hover:not(.sold-out) {
    background-color: var(--product-color);
}

.product-btn.sold-out {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Dropdown Styles */
.product-dropdown-container {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-top: auto;
}

.product-spacer {
    width: 100%;
    padding: 0.75rem;
    height: auto;
    /* Match button height for uniform layout */
}

.product-dropdown-btn {
    position: relative;
}

.product-dropdown-btn::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.product-dropdown-btn.dropdown-open::after {
    transform: rotate(180deg);
}

.product-dropdown-container {
    overflow: visible;
}

.product-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 12px;
    overflow-y: auto;
    z-index: 10;
    margin-bottom: -1px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.product-dropdown-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 0.9rem;
    cursor: default;
    transition: background-color 0.2s;
}

.product-dropdown-item:last-child {
    border-bottom: none;
}

.product-dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #666;
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
}

.variety-list {
    margin-bottom: 1.5rem;
}

.variety-item-display {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.variety-item-display:last-child {
    border-bottom: none;
}

.variety-name {
    font-weight: 400;
    color: #333;
}

.modal-content .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s, transform 0.2s;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.contact-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.contact-card p {
    color: #666;
    line-height: 1.8;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

.contact-form-container h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.btn-primary {
    background-color: #c41e3a;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary:hover {
    background-color: #8b1538;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 0.2rem solid rgba(51, 51, 51, 0.5);
    outline-offset: 0.3rem;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Address Section */
.address-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.address-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 2rem;
    margin-top: 0;
}

.address-details {
    margin-bottom: 2rem;
}

.address-details p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1;
    margin: 0.5rem 0;
}

.map-container {
    background: white;
    border: 1px solid black;
    border-radius: 10px;
    overflow: hidden;
    min-height: 500px;
    width: 100%;
    margin-top: 2rem;
}

.google-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

/* Footer */
footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    word-wrap: normal !important;
}

/* Selection styling */
::selection {
    background-color: rgba(51, 51, 51, 0.2);
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible improvements */
*:focus-visible {
    outline: 0.2rem solid rgba(51, 51, 51, 0.5);
    outline-offset: 0.2rem;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    nav {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 99;
        border-right: 1px solid #e0e0e0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .header-utils {
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .address-page {
        padding: 1rem;
    }

    .address-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .map-container {
        min-height: 400px;
    }

    .google-map {
        min-height: 400px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }
}

/* Mobile menu overlay */
@media (max-width: 768px) {
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
}

