/* ============================================== */
/* Euro-GUR.Ru - Product card styles              */
/* ============================================== */

.product-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
    .product-grid-2col {
        grid-template-columns: 1fr;
    }
}

.product-gallery-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.main-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    min-height: 250px;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    background: #f5f5f5;
}

.thumbnail:hover {
    border-color: #ffd700;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #1a3e6f;
    box-shadow: 0 0 0 2px rgba(26,62,111,0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .thumbnail {
        width: 55px;
        height: 55px;
    }
}

.product-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .product-info {
        font-size: 16px;
    }
}

.stock-status {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 3px solid #1a3e6f;
    font-size: 14px;
    color: #1a3e6f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-status a {
    color: #1a3e6f;
    font-weight: 600;
    text-decoration: underline dotted;
}

.stock-status a:hover {
    text-decoration: underline;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.price-block {
    font-size: 32px;
    font-weight: 700;
    color: #1a3e6f;
}

.article-badge {
    background: #ffd700;
    color: #1a3e6f;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.specs-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.spec-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.spec-label {
    font-weight: 600;
    color: #1a3e6f;
    font-size: 14px;
    min-width: 70px;
}

.spec-value {
    color: #333;
    font-size: 14px;
}

@media (max-width: 480px) {
    .specs-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.numbers-section {
    margin-bottom: 15px;
}

.numbers-title {
    color: #1a3e6f;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 10px;
}

.number-item {
    background: #f0f0f0;
    border: 1px solid #1a3e6f;
    color: #1a3e6f;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-family: monospace;
    white-space: nowrap;
    display: inline-block;
}

.hidden-number {
    display: inline-block;
}

.hidden-number.js-hidden {
    display: none !important;
}

.show-more-btn {
    background: none;
    border: none;
    color: #1a3e6f;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline dotted;
    padding: 5px 0;
    display: block;
}

.help-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 3px solid #1a3e6f;
}

.help-hint {
    font-size: 14px;
    color: #1a3e6f;
}

.help-hint a {
    color: #1a3e6f;
    font-weight: 600;
    text-decoration: underline dotted;
}

.help-hint a:hover {
    text-decoration: underline;
}

.alt-modification {
    background: #fff8e1;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 3px solid #ffd700;
    font-size: 14px;
}

.alt-modification a {
    color: #1a3e6f;
    font-weight: 600;
    text-decoration: underline;
}

.alt-modification a:hover {
    color: #0f2c4a;
}

.guarantee {
    background: #e6f7e6;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 3px solid #2c5f2d;
    font-size: 14px;
    color: #2c5f2d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-description {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.seo-description h2 {
    color: #1a3e6f;
    font-size: 18px;
    margin-bottom: 10px;
}

.seo-description p {
    margin-bottom: 12px;
}

.compatibility-note {
    background: #f8f9fa;
    border-left: 3px solid #ffd700;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 12px 0;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 10px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-cart {
    background: #1a3e6f;
    color: white;
    border-color: #1a3e6f;
}

.btn-cart:hover {
    background: #0f2c4a;
    border-color: #0f2c4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,62,111,0.3);
}

.btn-inquiry {
    background: white;
    color: #1a3e6f;
    border-color: #1a3e6f;
}

.btn-inquiry:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a3e6f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        padding: 16px 10px;
        font-size: 1.1rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-overlay.active {
    display: flex;
}

.inquiry-modal {
    background: white;
    border-radius: 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #1a3e6f;
    color: white;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    font-size: 18px;
    color: white;
    margin: 0;
}

.close-modal {
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

.product-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-icon {
    width: 36px;
    height: 36px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.preview-info {
    flex: 1;
}

.preview-title {
    font-weight: 600;
    color: #1a3e6f;
    font-size: 14px;
    margin-bottom: 2px;
}

.preview-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a3e6f;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

.required-star {
    color: #dc3545;
    font-size: 15px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
    color: #111;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #1a3e6f;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #444;
    opacity: 0.9;
}

.input-hint {
    font-size: 12px;
    color: #222;
    margin-top: 3px;
    font-weight: 500;
}

.upload-compact {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px dashed #1a3e6f;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-icon-small {
    font-size: 22px;
}

.upload-text-small {
    font-weight: 700;
    color: #1a3e6f;
    font-size: 14px;
}

.upload-btn-small {
    background: white;
    border: 2px solid #1a3e6f;
    color: #1a3e6f;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

.upload-btn-small:hover {
    background: #1a3e6f;
    color: white;
}

.upload-status-small {
    margin-top: 6px;
    font-size: 12px;
    color: #2c5f2d;
}

.upload-hint-small {
    font-size: 12px;
    color: #222;
    margin-top: 6px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-submit {
    flex: 2;
    background: #1a3e6f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #0f2c4a;
}

.btn-cancel {
    flex: 1;
    background: #f0f0f0;
    border: 1px solid #aaa;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

@media (max-width: 480px) {
    .inquiry-modal {
        max-width: 100%;
        height: auto;
        max-height: 98vh;
        margin: 0 10px;
    }
    .modal-body {
        padding: 15px;
    }
    .form-group {
        margin-bottom: 10px;
    }
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal-overlay.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

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

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-image-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-image-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: -35px;
    left: 0;
    color: white;
    font-size: 15px;
    background: rgba(0,0,0,0.5);
    padding: 6px 18px;
    border-radius: 30px;
}

.hidden-for-humans {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}

.product-title {
    color: #1a3e6f;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 600px) {
    .product-title {
        font-size: 22px;
    }
}

/* Стиль для вашего блока — тёмно-синий фон, белый текст */
.stock-status-centered {
    background: #1a3e6f !important;
    color: #ffffff !important;
    border-left: none !important;
    display: block !important;
    text-align: center;
    gap: 0 !important;
}

.stock-status-centered strong,
.stock-status-centered span {
    color: #ffffff !important;
}

.stock-status-centered .stock-check-btn {
    background-color: #ffd700 !important;
    color: #1a3e6f !important;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.stock-status-centered .stock-check-btn:hover {
    background-color: #ffffff !important;
    color: #1a3e6f !important;
}

/* Стили для страниц запчастей (parts_template.html) */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 260px;
}

.info-block {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
}

.info-block h3 {
    color: #1a3e6f;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #1a3e6f;
    text-align: center;
    margin: 15px 0;
}

.stock-moscow {
    background: #e6f7e6;
    color: #2c5f2d;
}

.stock-minsk {
    background: #fff3cd;
    color: #856404;
}

.hidden-numbers {
    display: none;
}

.btn-add-to-cart {
    background: #1a3e6f;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-add-to-cart:hover {
    background: #0f2c4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,62,111,0.3);
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #1a3e6f;
    text-decoration: none;
    font-size: 16px;
}

.btn-back:hover {
    text-decoration: underline;
}

