* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, Arial, sans-serif;
}

body {
    background: #fff;
    color: #1a1a1a;
}

#product-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#product-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 1px solid #e0ead6;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
    margin: 0 auto;
}

#product-image:hover {
    border-color: #4a7c2c;
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.1);
}

#product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#product-tags .badge {
    background-color: #e8f3e1 !important;
    color: #2d5016;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d0e5c4;
}

/* Product Description */
#product-description {
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
}

#product-description p {
    margin-bottom: 1rem;
}

#product-description p strong {
    color: #4a7c2c;
    font-weight: 600;
}

.back-btn {
    display: inline-block;
    background: transparent;
    color: #2d5016;
    padding: 8px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    position: relative;
    transition: color 0.3s ease;
}

.back-btn::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: rgba(74,124,44,0.12);
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
}

.back-btn:hover::after,
.back-btn:focus::after {
    transform: scaleX(1);
    opacity: 1;
}

.back-btn:hover {
    color: #4a7c2c;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    color: #4a7c2c;
    border: 2px solid #e0ead6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-icon:hover {
    background-color: #4a7c2c;
    color: #ffffff;
    border-color: #4a7c2c;
    transform: scale(1.1);
}

.btn-icon:focus {
    outline: 3px solid rgba(74, 124, 44, 0.2);
    outline-offset: 2px;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    padding: 1rem;
}

.modal-overlay[aria-hidden="false"] { 
    display:flex; 
}

.modal-panel {
    background: #ffffff;
    border: 1px solid #e0ead6;
    border-radius: 8px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.15);
    position: relative;
}

.modal-panel h3 {
    color: #2d5016;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.modal-panel p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-panel a {
    color: #4a7c2c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-panel a:hover {
    color: #2d5016;
    text-decoration: underline;
}

.modal-panel.modal-large { 
    max-width: 900px; 
    height: 85vh; 
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-panel.modal-large h3 {
    margin-bottom: 0;
    padding: 0.75rem 1.5rem; 
    flex-shrink: 0;
}

.modal-panel.modal-large h3::before {
    content: '✉️';
}

.modal-panel.modal-large iframe {
    flex: 1;
    border: none;  
    border-radius: 0 0 8px 8px;  
    width: 100%;
    height: 100%;
    min-height: 0;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2d5016;
}

.modal-panel:focus {
    outline: 3px solid rgba(74, 124, 44, 0.2);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column-reverse;
    }

    #product-image {
        max-width: 300px;
    }

    #product-title {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .btn-icon svg {
        width: 18px;
        height: 18px;
    }

    .modal-panel {
        padding: 1.25rem;
        max-width: 95%;
    }

    .modal-panel h3 {
        font-size: 1.3rem;
    }

    .modal-panel.modal-large {
        height: 90vh;
        padding: 0;  
    }

    .modal-panel.modal-large h3 {
        padding: 0.6rem 1rem;
    }

    .modal-panel.modal-large iframe {
        min-height: 0;
    }
}