:root {
    --page-width: 1374px;
    --page-height: 2090px;
    --ad-blue: #1f4b97;
    --ad-yellow: #e0c52f;
    --ad-bg: #d9d1ac;
    --ad-card-border: #98aa86;
    --ad-price: #c92d2d;
}

body {
    background: #efefef;
}

.builder-sidebar .card-header {
    background: #fff;
}

.current-file-info {
    font-size: 0.9rem;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 10px;
    border-radius: 0.375rem;
}

.template-suggestions {
    top: calc(100% + 2px);
    left: 0;
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
}

.page-stage {
    width: 100%;
    overflow: auto;
    padding: 12px 0 24px;
}

.page-scale-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ad-page {
    width: var(--page-width);
    height: var(--page-height);
    background: var(--ad-bg);
    border: 12px solid var(--ad-blue);
    outline: 6px solid var(--ad-yellow);
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
}

.ad-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    height: 100%;
    padding: 4px;
    border: 2px dashed transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ad-column.sortable-active {
    border-color: rgba(31, 75, 151, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.product-card {
    position: relative;
    border: 2px solid var(--ad-card-border);
    border-radius: 0;
    box-shadow: none;
    cursor: grab;
    overflow: hidden;
}

.product-card:active {
    cursor: grabbing;
}

.product-card .card-body {
    padding: 16px;
    padding-top: 52px;
}

.sortable-ghost {
    opacity: 0.45;
}

.sortable-chosen {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0.28;
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 6px 8px;
    border-radius: 10px;
    pointer-events: auto;
}

.product-card:hover .card-actions,
.product-card:focus-within .card-actions {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.82);
}

.card-actions .btn {
    padding: 4px 6px;
    font-size: 16px;
    line-height: 1;
    border: none;
}

.card-actions .btn i {
    pointer-events: none;
}

.card-actions .btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.card-actions .delete-btn {
    color: #c92d2d;
}

.card-actions .delete-btn:hover {
    background: rgba(201, 45, 45, 0.1);
}

.product-logo-wrap {
    margin-bottom: 10px;
}

.product-logo {
    display: block;
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.product-image-wrap {
    margin-bottom: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    padding: 10px;
}

.product-image {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-title {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    word-break: break-word;
}

.product-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.product-quantity {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

.price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
}

.old-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #777;
    text-decoration: line-through;
}

.new-price {
    display: inline-block;
    background: var(--ad-price);
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 8px;
}

.placeholder-text {
    opacity: 0.45;
}

.empty-state {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed #b4b4b4;
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.project-list-item {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-list-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.8rem;
    }

    .new-price {
        font-size: 2.2rem;
    }

    .product-image {
        max-height: 180px;
    }
}