/*
Theme Name: Divi Child
Template: Divi
Version: 1.0
*/


/* --- Layout --- */
.vpl-manager {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin: 40px 0;
    align-items: start;
}

/* --- Sidebar --- */
.vpl-sidebar {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
}

.vpl-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #303030;
    margin: 0 0 14px;
}

.vpl-create-form input[type="text"],
.vpl-create-form input[type="date"],
.vpl-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    font-size: 13px;
    color: #303030;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.vpl-create-form button[type="submit"],
button.vpl-btn-create {
    width: 100%;
    padding: 9px;
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    margin-top: 4px;
    box-shadow: none;
}

.vpl-list-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 8px;
    background: #e6e6e6;
    color: #303030;
    font-size: 14px;
    font-weight: 500;
    border: none;
    box-shadow: none;
    transition: background 0.15s;
}

.vpl-list-nav a:hover {
    background: #d8d8d8;
    color: #303030;
}

.vpl-list-nav a.is-active {
    background: #c5a985;
    color: #fff;
}

/* --- Main content --- */
.vpl-manager-content,
.vpl-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Header panel --- */
.vpl-list-header-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: none;
}

.vpl-list-header-panel label,
.vpl-list-header-panel strong {
    display: block;
    margin-bottom: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #303030;
}

.vpl-list-header-panel input[type="text"],
.vpl-list-header-panel input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    font-size: 13px;
    color: #303030;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.vpl-edit-list-form button[type="submit"],
button.vpl-btn-save {
    background: #c5a985;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: none;
    margin-top: 18px;
    margin-bottom: 12px;
    display: inline-block;
}

.vpl-list-actions form button[type="submit"],
button.vpl-btn-delete,
button.vpl-delete-btn {
    background: #fdf2f2;
    color: #c0392b;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: none;
    display: inline-block;
}

/* --- Share panel --- */
.vpl-share-panel-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
}

.vpl-share-panel-box a {
    color: #2563eb;
    word-break: break-all;
    font-size: 13px;
    margin-right: 12px;
}

.vpl-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

button.vpl-btn-copy,
button.vpl-copy-link {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.vpl-share-panel-box form button[type="submit"] {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: none;
}

/* --- Selected products panel --- */
.vpl-selected-products-panel {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* --- Other products panel --- */
.vpl-other-products-panel {
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
}

/* --- Product grid --- */
.vpl-grid,
.vpl-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* --- Product cards --- */
.vpl-manager-product-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.vpl-product-card-media img {
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.vpl-product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vpl-product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    margin: 0 0 6px;
    line-height: 1.4;
}

.vpl-price,
.vpl-price-wrap {
    font-size: 14px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 12px;
}

.vpl-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpl-actions form {
    margin: 0;
}

button.vpl-product-view-button,
button.vpl-btn-view {
    background: #e6e6e6;
    color: #303030;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: none;
    text-align: center;
}

button.vpl-btn-add {
    background: #d4a017;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: none;
    text-align: center;
}

button.vpl-btn-remove {
    background: #fdf2f2;
    color: #c0392b;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    box-shadow: none;
    text-align: center;
}

.vpl-muted {
    color: #888;
    font-size: 13px;
}

/* --- Modal --- */
body.vpl-modal-open {
    overflow: hidden;
}

.vpl-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10050;
}

.vpl-modal.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 60px 16px;
}

.vpl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(48, 48, 48, 0.6);
    z-index: -1;
}

.vpl-modal.is-open .vpl-modal-dialog {
    position: relative;
    margin: 0;
    max-height: none;
    width: min(900px, calc(100% - 32px));
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.vpl-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.vpl-modal-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.vpl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e6e6e6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #303030;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpl-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #303030;
    margin: 0 0 10px;
}

.vpl-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 12px;
}

.vpl-modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e6e6e6;
    color: #303030;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

.vpl-modal-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.vpl-modal-actions {
    margin-top: 20px;
}

.vpl-modal-actions a.add_to_cart_button,
.vpl-modal-actions a.ajax_add_to_cart {
    display: block;
    background: #303030;
    color: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
}

.vpl-modal-actions a.add_to_cart_button:hover,
.vpl-modal-actions a.ajax_add_to_cart:hover {
    background: #c5a985;
    color: #fff;
    text-decoration: none;
}

/* --- Cart corner --- */
.vpl-cart-corner {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #303030;
    color: #fff;
    text-decoration: none;
}

.vpl-cart-corner:hover {
    color: #fff;
    text-decoration: none;
}

.vpl-cart-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #c5a985;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* --- Shared list (client view) --- */
.vpl-wrap {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 30px;
}

.vpl-shared-list-header {
    margin-bottom: 30px;
}

.vpl-list-page-title {
    font-size: 26px;
    font-weight: 700;
    color: #303030;
    margin: 0 0 8px;
}

.vpl-list-vendor,
.vpl-list-event-meta p {
    font-size: 14px;
    color: #555;
    margin: 0 0 6px;
}

.vpl-shared-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.vpl-shared-product-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.vpl-shared-product-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.vpl-shared-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #303030;
    margin: 0 0 6px;
}

.vpl-shared-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 14px;
}

.vpl-shared-product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

a.vpl-btn-cart {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

a.vpl-btn-cart:hover {
    background: #c5a985;
    color: #fff;
    text-decoration: none;
}

/* Hide Divi cart icon */
.et-cart-info {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .vpl-manager {
        grid-template-columns: 1fr;
    }

    .vpl-modal-grid {
        grid-template-columns: 1fr;
    }

    .vpl-wrap {
        padding: 0 16px;
        margin-top: 40px;
    }
}