

/* Global font family for entire theme */
body,
html {
    font-family: 'Arial Narrow', Arial, 'Heiti SC', SimHei, sans-serif !important;
}

/* Ensure all elements inherit the font family */
* {
    font-family: inherit;
}

/* Apply to common elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select,
label,
li,
td,
th {
    font-family: 'Arial Narrow', Arial, 'Heiti SC', SimHei, sans-serif;
}


.pages .item a,
.pages .item strong,
.pages .next a,
.pages .previous a {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
    padding: 8px 14px;
    text-decoration: none;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Active Page */
.pages .item.current strong,
.pages .item.current span {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: 700;
}

/* Hover Effect */
.pages .item a:hover,
.pages .next a:hover,
.pages .previous a:hover {
    background-color: #f5f5f5;
    color: #000000;
    border-color: #000000;
}


/* Enforce Luma 2-Column Layout on Desktop */
@media (min-width: 1000px) {

    /* Main Cart Container - Flex Row */
    .cart-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        max-width: 1320px;
        margin: 0 auto;
        padding: 20px;
        /* Ensure columns are recognized */
    }

    /* Left Column: Items List */
    .cart-container .form-cart {
        width: 70% !important;
        padding-right: 40px;
        float: none !important;
        /* Reset any floats */
        margin-bottom: 40px;
    }

    /* Right Column: Summary Sidebar */
    .cart-container .cart-summary {
        width: 30% !important;
        position: relative !important;
        float: none !important;
        background: #f5f5f5 !important;
        /* Luma Grey Sidebar Style */
        padding: 20px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        /* Remove top margin if pushed */
    }

    /* Ensure actions toolbar stays inside form */
    .cart.table-wrapper .actions-toolbar {
        margin-top: 20px;
        text-align: right;
    }
}

/* General Cart Styling */
.cart-summary .summary.title {
    display: block !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
}

.cart-summary .block .title strong {
    font-size: 16px;
    font-weight: 600;
}



/* Standard reduction for all pages */
.page-title-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: auto;
}

/* Moderate reduction for Cart & Checkout (Balanced - Slightly Tighter) */
.checkout-cart-index .page-title-wrapper,
.checkout-index-index .page-title-wrapper {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-bottom: 10px !important;
    min-height: auto !important;
}

/* Mobile: Ensure Page Title is Full Width on Checkout */
@media (max-width: 767px) {

    .checkout-index-index .page-title-wrapper,
    .onestepcheckout-index-index .page-title-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .checkout-index-index .page-header,
    .onestepcheckout-index-index .page-header {
        margin-bottom: 0 !important;
    }
}

.checkout-cart-index .page-title,
.checkout-index-index .page-title {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.checkout-cart-index .page-main,
.checkout-index-index .page-main {
    margin-top: 10px !important;
    padding-top: 0 !important;
}



/* Hide Top Bar (Row 1) */
.checkout-index-index .porsche-header__top-bar,
.onestepcheckout-index-index .porsche-header__top-bar {
    display: none !important;
}

/* Hide Navigation (Row 3) */
.checkout-index-index .porsche-header__navigation,
.onestepcheckout-index-index .porsche-header__navigation {
    display: none !important;
}

/* Simplify Footer - Hide Columns 2, 3, 4 */
.checkout-index-index .porsche-footer__info,
.onestepcheckout-index-index .porsche-footer__info,
.checkout-index-index .porsche-footer__product,
.onestepcheckout-index-index .porsche-footer__product,
.checkout-index-index .porsche-footer__contact,
.onestepcheckout-index-index .porsche-footer__contact {
    display: none !important;
}

/* Center Logo/Copyright in Footer */
.checkout-index-index .porsche-footer__container,
.onestepcheckout-index-index .porsche-footer__container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    grid-template-columns: none !important;
}

.checkout-index-index .porsche-footer__logo,
.onestepcheckout-index-index .porsche-footer__logo {
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}


/* Apply Discount Button - Color Only (Preserve Design) */
.checkout-index-index .action.action-apply,
.onestepcheckout-index-index .action.action-apply,
.checkout-index-index .action.apply,
.onestepcheckout-index-index .action.apply {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    /* Removed structural overrides (padding, height, font) as per user request */
}

.checkout-index-index .action.action-apply:hover,
.onestepcheckout-index-index .action.action-apply:hover,
.checkout-index-index .action.apply:hover,
.onestepcheckout-index-index .action.apply:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    opacity: 0.8 !important;
}