/**
 * Shared presentational styles for storefront system pages (contact, about, auth).
 * Loaded on live site AND in the page builder so previews match production.
 */

/* —— Contact —— */
.contact-container {
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 0;
}
.contact-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    margin-bottom: 10px;
}
.contact-header {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
    text-align: center;
}
.contact-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}
.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}
.contact-form .form-row {
    display: flex;
    gap: 20px;
}
.contact-form .form-row .form-group {
    flex: 1;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 16px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff;
    border-radius: 0;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #111;
}
/* Presentational form fields (builder + live) */
.pb-form-label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pb-form-control {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 16px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-radius: 0;
}
body.builder-mode .pb-presentational-form.pb-form-preview-mode [data-pb-form-frozen],
body.builder-mode .pb-system-content-block .pb-form-preview-mode [data-pb-form-frozen] {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
    background-color: #f7f7f7 !important;
}
body.builder-mode .pb-presentational-form.pb-form-preview-mode .pb-form-label.builder-editable,
body.builder-mode .pb-presentational-form.pb-form-preview-mode .submit-btn.builder-editable,
body.builder-mode .pb-presentational-form.pb-form-preview-mode .builder-editable:not([data-pb-form-frozen]) {
    pointer-events: auto !important;
    cursor: pointer !important;
}
body.builder-mode .pb-presentational-form.pb-form-preview-mode::before {
    content: 'Form preview — edit labels & button; use gear icon for colors. Fields are not fillable here.';
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #f5f5eb;
    border: 1px dashed rgba(73, 84, 3, 0.35);
}
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    color: #999;
}
.contact-form select:focus,
.contact-form select:valid {
    color: #333;
}
.contact-form button.submit-btn {
    width: 100%;
    background: #1c1c1c;
    color: #fff;
    border: none;
    padding: 18px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0;
    margin-top: 10px;
}
.contact-form button.submit-btn:hover {
    background: #000;
}
.contact-info-section {
    background-color: #eadecd;
    padding: 80px 20px;
    text-align: center;
    color: #2b2b2b;
}
.contact-info-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 400;
    color: #2b2b2b;
}
.contact-info-title {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}
.contact-info-detail {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 5px;
    color: #444;
}
.contact-info-detail a {
    color: #111;
    text-decoration: underline;
}

/* —— About —— */
.about-large-banner {
    text-align: center;
}
.about-large-banner img.banner {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.teamHeader {
    margin-bottom: 24px;
}
.teamMembers {
    margin-bottom: 90px;
}
.al-subtitle3-40px {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 24px;
}
.al-subtitle3-16px {
    font-size: 16px;
    line-height: 1.6;
}
.staff-card {
    width: 280px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.staff-card-image {
    position: absolute;
    inset: 0;
}
.staff-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.staff-gradient {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}
.staff-info {
    position: relative;
    padding: 20px;
    color: #fff;
    z-index: 10;
}
.staff-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}
.pb-system-content-block .products-slider {
    min-height: 120px;
}
.pb-system-content-block .swiper-wrapper:empty::before {
    content: 'Team members appear when staff users exist in Admin.';
    display: block;
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* —— Auth (login / register / forgot / reset) —— */
.pb-auth-section {
    padding: 40px 0 80px;
}
.pb-auth-section .auth-card,
.pb-system-content-block .auth-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.pb-auth-section .auth-title,
.pb-system-content-block .auth-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.pb-auth-section .auth-subtitle,
.pb-system-content-block .auth-subtitle {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
}
.pb-auth-section .auth-btn-dark,
.pb-system-content-block .auth-btn-dark {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.pb-auth-section .auth-btn-dark:hover,
.pb-system-content-block .auth-btn-dark:hover {
    background-color: #444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.pb-auth-section .auth-btn-outline,
.pb-system-content-block .auth-btn-outline {
    border: 1px solid #ddd;
    color: #333;
    background: transparent;
    padding: 14px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.pb-auth-section .auth-btn-outline:hover,
.pb-system-content-block .auth-btn-outline:hover {
    background-color: #f8f9fa;
    color: #111;
    border-color: #ccc;
}
.pb-auth-section .fsh-form-control,
.pb-system-content-block .fsh-form-control,
.pb-auth-section .pb-form-control,
.pb-system-content-block .pb-form-control {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}
.pb-auth-section .fsh-form-control:focus,
.pb-system-content-block .fsh-form-control:focus,
.pb-auth-section .pb-form-control:focus,
.pb-system-content-block .pb-form-control:focus {
    border-color: #333;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
    background-color: #fff;
}
.pb-auth-section .fsh-form-label,
.pb-system-content-block .fsh-form-label,
.pb-auth-section .pb-form-label,
.pb-system-content-block .pb-form-label {
    font-weight: 500;
    color: #444;
    font-size: 14px;
}
.pb-auth-or {
    color: #999;
    font-size: 13px;
}

/* —— Website content pages (privacy, terms, about, contact intro) —— */
.elvy-website-content-page .elvy-shop-page-head,
.elvy-website-content-page .breadcrumb-area,
.elvy-website-content-body .editor-page-content h1,
.elvy-website-content-body .editor-page-content h2,
.elvy-website-content-body .editor-page-content h3,
.elvy-website-content-body .editor-page-content h4,
.elvy-website-content-body .editor-page-content .policy-section-heading {
    background: transparent !important;
    background-color: transparent !important;
}

.pb-policy-page {
    margin-top: 0;
}

.elvy-website-content-page .elvy-shop-page-head {
    padding: 0;
}

.elvy-shop-page-title,
.elvy-website-section-title {
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #111;
    line-height: 1.3;
}

.elvy-website-section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.policy-page,
.elvy-website-content-body {
    margin-top: 0;
    padding-top: 8px;
}

.contact-page-wrap {
    padding-bottom: 80px;
}

.elvy-website-content-intro {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #494f5b;
}

.editor-page-content.pb-policy-body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
}

.editor-page-content.pb-policy-body p,
.editor-page-content.pb-policy-body li,
.editor-page-content.pb-policy-body div:not([class]),
.editor-page-content.pb-policy-body span {
    font-family: 'Jost', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #494f5b !important;
    line-height: 1.75 !important;
}

.editor-page-content.pb-policy-body .policy-section-heading,
.editor-page-content.pb-policy-body h1,
.editor-page-content.pb-policy-body h2,
.editor-page-content.pb-policy-body h3,
.editor-page-content.pb-policy-body h4 {
    font-family: 'Jost', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    background: none !important;
    background-color: transparent !important;
    margin: 1.75rem 0 0.75rem;
    padding: 0 !important;
    border: 0;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.editor-page-content.pb-policy-body .policy-section-heading:first-child,
.editor-page-content.pb-policy-body h2:first-child,
.editor-page-content.pb-policy-body h3:first-child {
    margin-top: 0;
}

.editor-page-content.pb-policy-body strong,
.editor-page-content.pb-policy-body b {
    font-weight: 600 !important;
    color: #333 !important;
}

.policy-sidebar {
    position: sticky;
    top: 100px;
}
.policy-sidebar .sidebar-link {
    display: block;
    font-size: 15px;
    color: #494f5b;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}
.policy-sidebar .sidebar-link:hover,
.policy-sidebar .sidebar-link.active {
    color: #000;
    font-weight: 600;
}
.editor-page-content .policy-section-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 28px 0 14px;
}
.editor-page-content {
    font-weight: 400;
    font-family: inherit;
}
.editor-page-content p,
.editor-page-content li,
.editor-page-content div,
.editor-page-content span {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #494f5b !important;
    line-height: 1.75 !important;
    font-family: inherit !important;
}
.editor-page-content .policy-section-heading,
.editor-page-content h1,
.editor-page-content h2,
.editor-page-content h3,
.editor-page-content h4 {
    font-weight: 600 !important;
    color: #111 !important;
}
.pb-policy-builder-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #f5f5eb;
    border: 1px dashed rgba(73, 84, 3, 0.35);
}
body.builder-mode .policy-sidebar .sidebar-link.builder-editable {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Contact presentational copy — ensure headings open the editor in builder preview */
body.builder-mode .pb-system-content-block .contact-eyebrow.builder-editable,
body.builder-mode .pb-system-content-block .contact-header.builder-editable,
body.builder-mode .pb-system-content-block .contact-subtitle.builder-editable,
body.builder-mode .pb-system-content-block .contact-info-eyebrow.builder-editable,
body.builder-mode .pb-system-content-block .contact-info-title.builder-editable,
body.builder-mode .pb-system-content-block .pb-presentational-section.builder-editable {
    pointer-events: auto !important;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* —— Wishlist product cards —— */
.product-list-card.wishItem-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(73, 84, 3, 0.06);
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.product-list-card.wishItem-card:hover {
    box-shadow: 0 8px 28px rgba(73, 84, 3, 0.1);
}

.product-list-card .product-list-card-banner {
    flex: 0 0 140px;
    width: 140px;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.product-list-card .product-list-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-list-card .text-link2 {
    color: #495403;
    text-decoration: none;
    font-weight: 600;
}

.product-list-card .text-link2:hover {
    color: #343b04;
    text-decoration: underline;
}

.pb-wishlist-card .in-subtitle2-16px {
    color: #666;
}

@media (max-width: 575.98px) {
    .product-list-card.wishItem-card {
        flex-direction: column;
    }

    .product-list-card .product-list-card-banner {
        flex: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }
}

/* —— Blog listing & detail —— */
.pb-blog-listing-wrap {
    padding-bottom: 80px;
}

.pb-blog-listing-intro {
    color: #666;
}

.pb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.pb-blog-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(73, 84, 3, 0.15);
    background: #f7f4ef;
}

.pb-blog-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-blog-card:hover img {
    transform: scale(1.05);
}

.pb-blog-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 28px 24px 32px;
    pointer-events: none;
}

.pb-blog-date {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
}

.pb-blog-card-title {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-blog-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 18px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    background: #ffffff;
}

.pb-blog-large-banner {
    border-radius: 16px;
    overflow: hidden;
}

.pb-blog-large-banner > .banner {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.pb-blog-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

.pb-blog-detail-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #666;
    font-size: 14px;
}

.pb-blog-detail-content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 32px;
}

.pb-blog-detail-tags,
.pb-blog-detail-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #e6e6e6;
    margin-bottom: 12px;
}

.pb-blog-detail-tags-label,
.pb-blog-detail-share-label {
    font-weight: 600;
    color: #111;
    margin-right: 6px;
}

.pb-blog-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5eb;
    border: 1px solid rgba(73, 84, 3, 0.2);
    font-size: 13px;
}

.pb-blog-detail-share a {
    color: #495403;
    text-decoration: none;
    font-size: 14px;
}

.pb-blog-related-title {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 32px;
}

.fsh-breadcrumb {
    justify-content: center;
}

.fsh-breadcrumb .breadcrumb-item,
.fsh-breadcrumb .breadcrumb-item a {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #666;
}

.al-title-42px {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    color: #111;
}

@media (max-width: 991px) {
    .pb-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .pb-blog-large-banner > .banner {
        height: 320px;
    }
}

@media (max-width: 575px) {
    .pb-blog-grid {
        grid-template-columns: 1fr;
    }

    .pb-blog-overlay {
        padding: 22px 18px 26px;
    }
}
