/* Villartec-style Cart Drawer CSS - EXACT MATCH */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.vcart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.vcart-overlay.active {
    display: block;
    opacity: 1;
}

.vcart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    font-family: 'Montserrat', sans-serif;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}
.vcart-drawer.active {
    transform: translateX(0%);
}

.vcart-header {
    position: relative;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}
.vcart-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.vcart-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.vcart-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cw__progress {
    margin-top: 16px;
    display: flex;
    gap: 6px;
}
.cw__progress_stage {
    width: 10px;
    height: 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}
.cw__progress_stage.active {
    background: rgb(255, 88, 0);
}

.vcart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vcart-step {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.vcart-step.active {
    display: flex;
}

.vcart-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}
.vcart-step-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.vcart-clear-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.vcart-clear-btn:hover {
    color: #111827;
}

.vcart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #f3f4f6;
}
.vcart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
}
.vcart-item-info {
    flex: 1;
    padding-right: 15px;
}
.vcart-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.3;
    text-transform: uppercase;
}
.vcart-item-price {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.vcart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vcart-item-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.vcart-item-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.vcart-item-count {
    font-weight: 500;
    font-size: 14px;
    color: #111827;
    min-width: 40px;
    text-align: center;
}

.vcart-footer {
    flex: 0 0 auto;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.vcart-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.vcart-total-label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}
.vcart-total-price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.vcart-disclaimer {
    font-size: 11px;
    margin-bottom: 20px;
    color: #6b7280;
    line-height: 1.5;
}

.vcart-actions {
    display: flex;
    gap: 12px;
}

.vcart-btn {
    flex: 1;
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.vcart-btn-proceed {
    background: rgb(255, 88, 0);
    color: #ffffff;
}
.vcart-btn-proceed:hover {
    background: #e65500;
}
.vcart-btn-proceed:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.vcart-btn-submit {
    background: #313131;
    color: #ffffff;
}
.vcart-btn-submit:hover {
    background: #111827;
}

.vcart-btn-back {
    background: #d9d9d9;
    color: #777777;
    flex: 0.5;
}
.vcart-btn-back:hover {
    color: #000000;
}

/* Step 2 - Dealers */
.vcart-search-container {
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 20px;
    background: #ffffff;
    transition: 0.2s;
}
.vcart-search-container:has(input:focus) {
    border-color: rgb(255, 88, 0);
}
.vcart-search-input {
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
.vcart-search-input:focus {
    outline: none;
}

.vcart-dealer-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.vcart-dealer-item:hover {
    border-color: #d1d5db;
}
.vcart-dealer-item.selected {
    border: 2px solid rgb(255, 88, 0);
}
.vcart-dealer-badge {
    display: none;
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
    color: rgb(255, 88, 0);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.vcart-dealer-item.selected .vcart-dealer-badge {
    display: block;
}
.vcart-dealer-name {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
}
.vcart-dealer-addr {
    font-size: 14px;
    color: #6b7280;
}

/* Step 3 - Form */
.vcart-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vcart-input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 60px;
    padding: 10px 20px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    transition: 0.2s;
    width: 100%;
}
.vcart-input:focus, .vcart-input:hover, .vcart-input:active {
    outline: none;
    box-shadow: none;
    border-color: #9ca3af;
}

.vcart-checkbox-label {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    align-items: flex-start;
}
.vcart-checkbox-label input {
    margin-top: 2px;
}
.vcart-checkbox-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.vcart-checkbox-text a {
    color: rgb(255, 88, 0);
    text-decoration: none;
}
.vcart-checkbox-text a:hover {
    text-decoration: underline;
}

/* Step 4 - Success */
.vcart-success-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    height: 100%;
}
.vcart-success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #16a34a;
}
.vcart-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.vcart-success-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Order Details Card */
.vcart-order-card {
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.vcart-oc-header, .vcart-oc-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vcart-oc-title { font-weight: 700; font-size: 16px; color: #111827; }
.vcart-oc-number { font-weight: 700; font-size: 16px; color: #f97316; }
.vcart-oc-left { font-size: 14px; color: #374151; }
.vcart-oc-badge { font-size: 12px; color: #9ca3af; margin-left: 6px; }
.vcart-oc-price { font-weight: 700; font-size: 16px; color: #111827; }
.vcart-oc-divider { border-top: 1px solid #e5e7eb; margin: 8px 0; }
.vcart-oc-customer { display: flex; flex-direction: column; gap: 4px; }
.vcart-oc-name { font-weight: 600; font-size: 14px; color: #374151; }
.vcart-oc-contacts { font-size: 13px; color: #4b5563; }
.vcart-oc-store { display: flex; flex-direction: column; gap: 4px; }
.vcart-oc-subtitle { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; }
.vcart-oc-store-name { font-weight: 700; font-size: 14px; color: #111827; }
.vcart-oc-store-addr { font-size: 13px; color: #4b5563; line-height: 1.4; }
.vcart-oc-store-addr p { margin: 0 0 4px 0; }
.vcart-oc-store-addr a { color: #f97316; text-decoration: none; }
.vcart-oc-store-addr a:hover { text-decoration: underline; }

/* Support Box */
.vcart-support-box {
    background-color: #fee2e2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.vcart-support-box a {
    color: #ea580c;
    text-decoration: underline;
    font-weight: 600;
}
