/* Catalog Page Styles */
.catalog-header {
    padding: 4rem 0 2rem;
    background: #F9F9F9;
}

.catalog-header .page-title {
    color: var(--primary-green);
}

.page-title {
    font-size: 3.5rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.catalog-header-image {
    text-align: center;
}

.catalog-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.catalog-section {
    padding: 4rem 0;
    background: #F9F9F9;
}

.catalog-section .section-title {
    color: var(--primary-green);
    text-shadow: none;
    font-size: 48px;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--light-green);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 200px;
}

.product-title {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 60px;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: var(--font-weight-normal);
    letter-spacing: -0.01em;
}

.product-specs {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: auto;
}

.product-specs p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-specs p:last-child {
    margin-bottom: 0;
}

.btn-order {
    width: 100%;
    padding: 14px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.btn-order:hover {
    background: #166030;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    margin: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray-text);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: rgba(0,0,0,0.05);
}

.modal-close:hover {
    color: var(--primary-green);
    background: rgba(31, 122, 62, 0.1);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-green);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.2;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content label {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #fafafa;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(31, 122, 62, 0.1);
}

.modal-content input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: var(--gray-text);
}

.modal-content textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
}

.modal-content .btn-primary {
    width: 100%;
    height: 64px;
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(31, 122, 62, 0.4);
    letter-spacing: 0.5px;
}

.modal-content .btn-primary:hover {
    background: #166030;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 122, 62, 0.4);
}

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

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.success-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideDown 0.3s;
}

.success-content h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-content a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.success-content a:hover {
    text-decoration: underline;
}

.btn-close-success {
    margin-top: 1.5rem;
    padding: 12px 30px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-close-success:hover {
    background: #166030;
}

@media (max-width: 768px) {
    .catalog-header {
        padding: 3rem 0 2rem;
    }

    .page-title {
        font-size: 2rem;
        padding: 0 16px;
    }

    .catalog-header-image {
        padding: 0 16px;
    }

    .catalog-section {
        padding: 3rem 0;
    }

    .catalog-section .container {
        padding: 0 16px;
    }

    .catalog-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .product-card {
        margin: 0;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 1.5rem;
        min-height: auto;
    }

    .product-title {
        font-size: 1.3rem;
        min-height: auto;
        margin-bottom: 0.75rem;
    }

    .product-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .product-specs {
        font-size: 0.9rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .btn-order {
        padding: 1.125rem 1.5rem;
        font-size: 1.1rem;
        min-height: 56px;
        font-weight: var(--font-weight-bold);
        color: #ffffff !important;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.5) !important;
        box-shadow: 0 4px 15px rgba(31, 122, 62, 0.5), 0 0 20px rgba(0,0,0,0.3) !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 0 auto;
    }
}

