/* ============================================================
 * VDC Order Form - Modern Product Cards
 * Base layout handled by #order-standard_cart rules in all.min.css
 * ============================================================ */

/* Replace cart icon with cloud in sidebar header */
#order-standard_cart .cart-sidebar .panel-title .fa-shopping-cart::before {
    content: "\f0c2";
}

/* Ensure sidebar matches standard_cart sizing */
#order-standard_cart .cart-sidebar {
    font-size: 14px;
}
#order-standard_cart .cart-sidebar h3 {
    font-size: 16px;
}
#order-standard_cart .cart-sidebar .list-group-item {
    font-size: 14px;
}

.vdc-tagline {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Product navigation strip */
.vdc-product-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.vdc-product-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.vdc-product-nav-item i {
    color: #de3580;
    font-size: 16px;
}
.vdc-product-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(222, 53, 128, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(222, 53, 128, 0.3);
    color: #2c3e50;
    text-decoration: none;
}

/* Back to top link */
.vdc-back-to-top {
    display: block;
    text-align: right;
    padding: 8px 28px 0;
    color: #bbb;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.vdc-back-to-top:hover {
    color: #de3580;
    text-decoration: none;
}

/* Product wrapper - full width, one per row */
.vdc-products .vdc-product-wrapper {
    margin-bottom: 44px;
}

/* Product Card */
.vdc-product-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}
.vdc-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.vdc-card-header {
    background: linear-gradient(135deg, #de3580 0%, #bf6bb4 40%, #bfd6f1 100%);
    color: #fff;
    padding: 18px 28px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vdc-card-header h3 {
    font-size: 1.35em;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.vdc-card-header .badge {
    font-size: 0.75em;
    font-weight: 400;
}

/* Card Body - full width description */
.vdc-product-card .card-body {
    padding: 28px 28px 20px;
}

/* ---- Description typography ---- */
.vdc-description {
    font-size: 14.5px;
    line-height: 1.7;
    color: #444;
}

/* Paragraphs */
.vdc-description p {
    margin: 0 0 6px 0;
}
.vdc-description p:last-child {
    margin-bottom: 0;
}

/* Cross-reference link to other product groups */
.vdc-crossref {
    font-size: 12px;
    color: #777;
    margin-top: 14px;
}
.vdc-crossref a {
    color: #bf6bb4;
    text-decoration: none;
}
.vdc-crossref a:hover {
    color: #de3580;
}

/* Bold text */
.vdc-description strong {
    color: #2c3e50;
}

/* Hide stray <br> WHMCS injects between elements */
.vdc-description > br {
    display: none;
}

/* Feature/highlight section divs */
.vdc-description > div {
    background: #f8f9fa;
    border-left: 3px solid #2c3e50;
    border-radius: 0 4px 4px 0;
    padding: 14px 18px;
    margin: 12px 0;
    line-height: 1.5;
}
.vdc-description > div > br {
    display: none;
}
.vdc-description > div:last-child {
    margin-bottom: 0;
}

/* Section header (h5 inside feature divs) */
.vdc-description h5 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: normal;
}

/* Lists inside feature divs */
.vdc-description > div ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vdc-description > div ul li {
    padding: 2px 0 2px 18px;
    position: relative;
}
.vdc-description > div ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 12px;
    color: #de3580;
    position: absolute;
    left: 0;
    top: 4px;
}

/* Links */
.vdc-description a {
    color: #2980b9;
    text-decoration: underline;
}
.vdc-description a:hover {
    color: #1a5276;
}

/* Underlined text */
.vdc-description u,
.vdc-description-short u {
    text-decoration-style: dotted;
    text-decoration-color: #bbb;
    text-underline-offset: 3px;
}

/* ---- Short description mode (products listing page) ---- */
/* 2-column grid: paragraphs span full width, feature divs tile 2x2 */
.vdc-description-short {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

/* WHMCS injects <br> after every element — hide them so they don't become grid items */
.vdc-description-short > br {
    display: none;
}

/* Paragraphs span full width, tighter spacing */
.vdc-description-short > p {
    grid-column: 1 / -1;
    margin: 0 0 2px 0;
}

/* Feature tiles: override the full-page div styling */
.vdc-description-short > div {
    background: #fff;
    border-left: none;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    padding: 14px 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.15;
    white-space: normal;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.vdc-description-short > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(222, 53, 128, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(222, 53, 128, 0.3);
}

/* Hide stray <br> tags WHMCS injects inside the feature divs */
.vdc-description-short > div > br {
    display: none;
}

/* Tile header (h5) */
.vdc-description-short h5 {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    padding: 0 0 5px 0;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #bf6bb4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
}

/* Lists inside tiles */
.vdc-description-short > div ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vdc-description-short > div ul li {
    padding: 0 0 0 18px;
    position: relative;
}
.vdc-description-short > div ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 12px;
    color: #de3580;
    position: absolute;
    left: 0;
    top: 1px;
}

/* Responsive: stack to 1 column on small screens */
@media only screen and (max-width: 767px) {
    .vdc-description-short {
        grid-template-columns: 1fr;
    }
}

/* ---- Card Footer: pricing bar ---- */
.vdc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 16px 28px;
}

.vdc-footer-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.vdc-pricing-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-right: 4px;
}
.vdc-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}
.vdc-cycle {
    font-size: 13px;
    color: #777;
    margin-left: 2px;
}
.vdc-setup-fee {
    font-size: 12px;
    color: #999;
    width: 100%;
}

/* Order Button */
.vdc-order-btn {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    background: #de3580;
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.vdc-order-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transition: none;
}
.vdc-order-btn:hover {
    background: #de3580;
    border: none;
    box-shadow: 0 6px 20px rgba(222, 53, 128, 0.3);
    color: #fff;
}
.vdc-order-btn:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .vdc-product-card .card-body {
        padding: 20px;
    }
    .vdc-card-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }
    .vdc-footer-pricing {
        justify-content: center;
    }
    .vdc-card-header h3 {
        font-size: 1.15em;
    }
    .vdc-price {
        font-size: 1.5em;
    }
    .vdc-order-btn {
        width: 100%;
    }
}
