/* Pagini (conținut, contact, formulare retur/garanție, promoții) — preluate din tema veche, recolorate. Favoritele folosesc cardurile temei (base.css). */
/* ===== Preluat din tema veche (style.css 2946-3115: conținutul paginilor), culori trecute pe tokenurile direcției A ===== */
/* ==========================================================================
   PAGE CONTENT - Styles for static pages (Gutenberg blocks)
   ========================================================================== */

.page-content {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* Page Body - Content Typography */
.page-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink);
}

.page-body p {
    margin: 0 0 1.2em 0;
}

.page-body h1 {
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.5em 0 0.8em 0;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.5em 0 0.7em 0;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.3em 0 0.6em 0;
}

.page-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.2em 0 0.5em 0;
}

.page-body h5,
.page-body h6 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 1em 0 0.5em 0;
}

.page-body ul,
.page-body ol {
    margin: 0 0 1.2em 0;
    padding-left: 1.5em;
}

.page-body li {
    margin-bottom: 0.5em;
}

.page-body a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.page-body a:hover {
    color: var(--teal-700);
}

.page-body blockquote {
    margin: 1.5em 0;
    padding: 15px 20px;
    border-left: 4px solid var(--color-primary);
    background: var(--surface-2);
    font-style: italic;
}

.page-body blockquote p:last-child {
    margin-bottom: 0;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-body th,
.page-body td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--color-border-light);
}

.page-body th {
    background: var(--surface-2);
    font-weight: 600;
}

.page-body hr {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: 2em 0;
}

.page-body strong,
.page-body b {
    font-weight: 600;
    color: var(--color-text);
}

.page-body em,
.page-body i {
    font-style: italic;
}

/* Gutenberg Block Spacing */
.page-body .wp-block-heading {
    margin-top: 1.5em;
}

.page-body .wp-block-paragraph {
    margin-bottom: 1.2em;
}

.page-body .wp-block-list {
    margin-bottom: 1.2em;
}

.page-body .wp-block-image {
    margin: 1.5em 0;
}

.page-body .wp-block-quote {
    margin: 1.5em 0;
}

.page-body .wp-block-separator {
    margin: 2em 0;
}

/* WooCommerce Pages Override */
.woocommerce-page .page-content .site-container {
    max-width: var(--site-max-width);
}

/* ===== Preluat din tema veche (style.css 3116-3454: contact), culori trecute pe tokenurile direcției A ===== */
/* ==========================================================================
   CONTACT PAGE - Modern & Clean Design
   ========================================================================== */

.contact-page .page-header {
    text-align: center;
    border-bottom: none;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

/* Contact Form Section */
.contact-form-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px 0;
}

.contact-intro {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form label .required {
    color: #ef4444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-checkbox {
    margin-top: 5px;
}

.contact-form .form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.contact-form .form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.contact-form .form-checkbox span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.contact-form .form-checkbox a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.contact-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.contact-submit svg {
    stroke: #fff;
}

/* Success/Error Messages */
.contact-success,
.contact-error {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

.contact-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-success svg {
    stroke: #22c55e;
    flex-shrink: 0;
}

.contact-success p,
.contact-error p {
    margin: 0;
    font-size: 14px;
}

.contact-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #f8fafa;
    border: 1px solid #e8f0f0;
    border-radius: var(--radius-md);
    padding: 25px;
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 15px 0;
}

.contact-card h3 svg {
    stroke: var(--color-primary);
}

.contact-detail {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail strong {
    color: var(--color-text);
    margin-right: 5px;
}

.contact-detail a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.schedule-item {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 5px;
}

.schedule-item.schedule-closed {
    color: #ef4444;
}

.company-details p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 5px 0;
}

.company-details p:first-child {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-page .page-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .contact-page .page-header h1 {
        font-size: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Info section first on mobile, with side padding */
    .contact-info-section {
        order: -1;
        padding: 0 var(--site-margin);
    }
    
    .contact-card {
        padding: 18px;
        border-radius: var(--radius-sm);
    }
    
    .contact-card h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .contact-detail,
    .schedule-item,
    .company-details p {
        font-size: 13px;
    }
    
    /* Form section with padding */
    .contact-form-section {
        padding: 0 var(--site-margin);
        margin-top: 10px;
    }
    
    .contact-form-section h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .contact-intro {
        margin-bottom: 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: 16px;
    }
    
    .contact-form label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 11px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    .contact-form .form-checkbox span {
        font-size: 12px;
    }
    
    /* Button - same style as add to cart, not full width */
    .contact-submit {
        width: auto;
        padding: 12px 28px;
        font-size: 14px;
        font-weight: 600;
        border-radius: var(--radius-sm);
    }
}

/* ===== Preluat din tema veche (style.css 13848-14303: formulare retur și garanție), culori trecute pe tokenurile direcției A ===== */
/* ==========================================================================
   FORMS - RETUR & GARANTIE
   ========================================================================== */
.form-page {
    padding: 40px 0 80px;
    background: var(--color-bg-alt);
    min-height: 70vh;
}

.form-page .site-container {
    max-width: 800px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
}

.form-header h1 svg {
    color: var(--color-primary);
}

.form-subtitle {
    color: var(--color-text-light);
    font-size: 16px;
    margin: 0;
}

/* Info Box */
.info-box {
    background: var(--teal-50);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.info-box-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box-icon svg {
    color: white;
}

.info-box-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--color-text);
}

.info-box-content ul {
    margin: 0;
    padding-left: 18px;
}

.info-box-content li {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.info-box-content li:last-child {
    margin-bottom: 0;
}

/* Form Error */
.form-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    font-weight: 500;
}

/* Main Form */
.casasmart-form {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Form Section */
.form-section {
    padding: 30px;
    border-bottom: 1px solid var(--color-border-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 25px;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Form Rows */
.form-row {
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 197, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23666'%20stroke-width='2'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Form Footer */
.form-footer {
    padding: 25px 30px;
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox label a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

/* Client Type Selector (Cerere Oferta) */
.client-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.client-type-option {
    cursor: pointer;
}

.client-type-option input {
    display: none;
}

.client-type-option .option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.client-type-option .option-box svg {
    color: var(--color-text-light);
    transition: color 0.2s;
}

.client-type-option .option-box span:last-child {
    font-weight: 500;
    color: var(--color-text);
}

.client-type-option input:checked + .option-box {
    border-color: var(--color-primary);
    background: var(--teal-50);
}

.client-type-option input:checked + .option-box svg {
    color: var(--color-primary);
}

.client-type-option:hover .option-box {
    border-color: var(--color-primary);
}

@media (max-width: 480px) {
    .client-type-selector {
        grid-template-columns: 1fr;
    }
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Success Message */
.form-success {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.success-icon {
    margin-bottom: 25px;
}

.form-success h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 15px;
}

.form-success > p {
    color: var(--color-text-light);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.success-info {
    background: #f0fdf4;
    border: 1px solid var(--stock);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
}

.success-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 15px;
}

.success-info ul {
    margin: 0;
    padding-left: 20px;
}

.success-info li {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.success-info li:last-child {
    margin-bottom: 0;
}

.form-success .btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background 0.2s;
}

.form-success .btn-primary:hover {
    background: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 767px) {
    .form-page {
        padding: 25px 0 50px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .info-box-icon {
        margin: 0 auto;
    }
    
    .info-box-content ul {
        text-align: left;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
    
    .form-footer {
        padding: 20px;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .form-success {
        padding: 40px 25px;
    }
}

/* ===== Preluat din tema veche (style.css 14304-14424: promoții), culori trecute pe tokenurile direcției A ===== */
/* ==========================================================================
   PROMOTIONS PAGE
   ========================================================================== */
.promotions-page {
    padding: 30px 0 60px;
    min-height: 60vh;
}

.promotions-products-wrap.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 230px));
    gap: 20px;
}

@media (max-width: 768px) {
    .promotions-products-wrap.woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.promotions-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border-light);
}

.promotions-header .page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.promotions-header .page-title svg {
    color: var(--color-sale);
}

.promotions-count {
    color: var(--color-text-light);
    font-size: 15px;
    margin: 0;
}

/* No promotions message */
.no-promotions {
    text-align: center;
    padding: 80px 20px;
}

.no-promotions svg {
    margin-bottom: 20px;
}

.no-promotions h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px;
}

.no-promotions p {
    color: var(--color-text-light);
    margin: 0 0 25px;
}

.no-promotions .btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background 0.2s;
}

.no-promotions .btn-primary:hover {
    background: var(--color-primary-dark);
}

/* Promotions page products grid - 4 columns like category page */
.promotions-page .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.promotions-page .products .product-card {
    border: 1px solid var(--color-border-light);
}

@media (max-width: 1199px) {
    .promotions-page .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .promotions-page .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .promotions-page .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .promotions-header .page-title {
        font-size: 22px;
    }
}

