/*
Theme Name: RemorciBaseStock
Theme URI: https://remorcibasculabile.ro
Author: RemorciBase
Author URI: https://remorcibasculabile.ro
Description: Temă WordPress pentru magazin de remorci.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remorcibase-stock
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FAFAFA;
    color: #1A1A1A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #525252;
}

.product-card {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #E5E5E5;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-primary {
    background: #111827;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary:hover {
    background: #1f2937;
}

.btn-secondary {
    background: transparent;
    color: #1A1A1A;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #D4D4D4;
    font-size: 15px;
}

.btn-secondary:hover {
    background: #F5F5F5;
    border-color: #A3A3A3;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-stock {
    background: #DCFCE7;
    color: #166534;
}

.badge-few {
    background: #FEF3C7;
    color: #854D0E;
}

.badge-out {
    background: #FEE2E2;
    color: #991B1B;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #E5E5E5;
    background: white;
    color: #525252;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
}

.price-large {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
}

.divider {
    height: 1px;
    background: #E5E5E5;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.25rem 2rem;
}

.spec-label {
    color: #4B5563;
    font-weight: 500;
    font-size: 0.95rem;
}

.spec-value {
    text-align: right;
    font-size: 0.95rem;
}

.thumbnail {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #1A1A1A;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #F5F5F5;
}

.info-box {
    background: #F9FAFB;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    padding: 20px;
}

.gallery-main {
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.contact-card {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #A3A3A3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1A1A1A;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1A1A1A;
    font-size: 14px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
}

.wpcf7-form input:focus {
    border-color: #1A1A1A;
    ring: 2px;
}

.gdpr-container .wpcf7-list-item {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.gdpr-container p {
    margin-bottom: 0 !important;
}

.gdpr-container input[type="checkbox"] {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }

    .spec-value {
        text-align: left;
        font-size: 1rem;
        padding-left: 1.25rem;
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none;
}

/* Modal Container */
.modal-container {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

/* Modal Content */
.modal-content {
    padding: 2rem;
    position: relative;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #111827;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Product Info */
.modal-product-info {
    margin-bottom: 1.5rem;
}

.modal-product-info.hidden {
    display: none;
}

/* Contact Form 7 Styling */
.modal-form-wrapper .wpcf7-form {
    margin: 0;
}

.modal-form-wrapper .wpcf7-form p {
    margin-bottom: 1rem;
}

.modal-form-wrapper label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modal-form-wrapper input[type="text"],
.modal-form-wrapper input[type="email"],
.modal-form-wrapper input[type="tel"],
.modal-form-wrapper textarea,
.modal-form-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.modal-form-wrapper input:focus,
.modal-form-wrapper textarea:focus,
.modal-form-wrapper select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.modal-form-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-form-wrapper input[type="submit"] {
    width: 100%;
    background: #111827;
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.modal-form-wrapper input[type="submit"]:hover {
    background: #1F2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.modal-form-wrapper input[type="submit"]:active {
    transform: translateY(0);
}

/* CF7 Response Messages */
.modal-form-wrapper .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.modal-form-wrapper .wpcf7-mail-sent-ok {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.modal-form-wrapper .wpcf7-validation-errors,
.modal-form-wrapper .wpcf7-mail-sent-ng {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.modal-form-wrapper .wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.modal-form-wrapper .wpcf7-spinner {
    margin-left: 0.5rem;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .modal-container {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}
