/* ==========================================================================
   Demo Three — common.css
   Shared building blocks for inner pages (cart, checkout, account, blog ...).
   Load order: home.css → common.css → <page>.css → responsive.css
   ========================================================================== */

:root {
    --pg-accent: var(--mvs-primary);
    --pg-accent-dark: var(--mvs-primary-dark);
    --pg-accent-soft: var(--mvs-primary-soft);
    --pg-accent-shadow: color-mix(in srgb, var(--mvs-primary) 30%, transparent);
    --pg-dark: #000;
    --pg-text: #333;
    --pg-muted: #666;
    --pg-border: #e8e9ea;
    --pg-bg-soft: #f8f9fa;
    --pg-radius: 12px;
    --pg-radius-sm: 8px;
    --pg-btn-radius: 50px;
    --pg-btn-bg: var(--mvs-primary);
    --pg-head-font: var(--mvs-heading-font);
    --pg-head-weight: 800;
    --pg-head-spacing: -0.5px;
    --pg-hero-bg: linear-gradient(135deg, var(--mvs-primary-soft) 0%, var(--mvs-primary-softer) 100%);
    --pg-hero-align: left;
    --pg-hero-justify: flex-start;
    --pg-hero-p-left: 0;
    --pg-media-bg: linear-gradient(135deg, var(--mvs-primary-soft) 0%, var(--mvs-primary-softer) 100%);
    --pg-img-fit: cover;
    --pg-img-pad: 0;
    --pg-star: var(--mvs-star);
    --pg-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --pg-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --pg-success: var(--mvs-primary);
    --pg-danger: var(--mvs-danger);
    --pg-warning: var(--mvs-warning);
    --pg-sticky-top: 24px;
    --pg-photo-fit: cover;
    --pg-photo-pad: 0;
}

/* ==========================================================================
   Shared inner-page components (prefix pg-)
   ========================================================================== */
.pg-section {
    padding: 70px 0;
    background: #fff;
}

.pg-section.soft {
    background: var(--pg-bg-soft);
}

.pg-section.tight {
    padding: 48px 0;
}

/* ---------- Page hero (title + breadcrumb) ---------- */
.pg-hero {
    padding: 56px 0;
    background: var(--pg-hero-bg);
    border-bottom: 1px solid var(--pg-border);
    text-align: var(--pg-hero-align);
}

.pg-hero h1 {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    letter-spacing: var(--pg-head-spacing);
    font-size: 44px;
    line-height: 1.15;
    color: var(--pg-dark);
    margin-bottom: 12px;
}

.pg-hero p {
    max-width: 640px;
    margin: 0 auto 0 var(--pg-hero-p-left);
    font-size: 15px;
    line-height: 1.7;
    color: var(--pg-muted);
}

.pg-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: var(--pg-hero-justify);
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.pg-crumbs a {
    color: var(--pg-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg-crumbs a:hover {
    color: var(--pg-dark);
}

.pg-crumbs span {
    color: var(--pg-muted);
}

.pg-crumbs .sep {
    opacity: 0.5;
}

/* ---------- Headings ---------- */
.pg-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pg-accent);
}

.pg-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.pg-head h2,
.pg-h2 {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    letter-spacing: var(--pg-head-spacing);
    font-size: 34px;
    line-height: 1.2;
    color: var(--pg-dark);
    margin-bottom: 12px;
}

.pg-head p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pg-muted);
}

.pg-h3 {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 22px;
    color: var(--pg-dark);
    margin-bottom: 14px;
}

.pg-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--pg-muted);
}

/* ---------- Buttons ---------- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1.5px solid transparent;
    border-radius: var(--pg-btn-radius);
    background: var(--pg-btn-bg);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-btn:hover {
    background: var(--pg-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--pg-accent-shadow);
}

.pg-btn-outline {
    background: transparent;
    border-color: var(--pg-accent);
    color: var(--pg-accent);
}

.pg-btn-outline:hover {
    background: var(--pg-accent);
}

.pg-btn-dark {
    background: var(--pg-dark);
}

.pg-btn-dark:hover {
    background: var(--pg-accent);
}

.pg-btn-light {
    background: #fff;
    color: var(--pg-dark);
    border-color: var(--pg-border);
}

.pg-btn-light:hover {
    background: var(--pg-dark);
    border-color: var(--pg-dark);
}

.pg-btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

.pg-btn-lg {
    padding: 16px 36px;
    font-size: 15px;
}

.pg-btn-block {
    width: 100%;
}

.pg-link {
    color: var(--pg-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg-link:hover {
    color: var(--pg-dark);
    text-decoration: underline;
}

.pg-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--pg-border);
    border-radius: 50%;
    background: #fff;
    color: var(--pg-muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-icon-btn:hover {
    border-color: var(--pg-danger);
    background: var(--pg-danger);
    color: #fff;
}

/* ---------- Cards ---------- */
.pg-card {
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 28px;
}

.pg-card.soft {
    background: var(--pg-bg-soft);
}

.pg-card-title {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 20px;
    color: var(--pg-dark);
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--pg-border);
}

/* ---------- Forms ---------- */
.pg-field {
    margin-bottom: 18px;
}

.pg-field label,
.pg-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-dark);
}

.pg-field .req {
    color: var(--pg-danger);
}

.pg-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    background: #fff;
    color: var(--pg-text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pg-input:focus {
    outline: none;
    border-color: var(--pg-accent);
    box-shadow: 0 0 0 3px var(--pg-accent-soft);
}

.pg-input::placeholder {
    color: #aaa;
}

textarea.pg-input {
    min-height: 130px;
    resize: vertical;
}

select.pg-input {
    cursor: pointer;
}

.pg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.pg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pg-muted);
    cursor: pointer;
}

.pg-check input {
    margin-top: 3px;
    accent-color: var(--pg-accent);
    cursor: pointer;
}

.pg-search {
    display: flex;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-btn-radius);
    overflow: hidden;
    background: #fff;
}

.pg-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.pg-search button {
    padding: 0 18px;
    border: none;
    background: var(--pg-btn-bg);
    color: #fff;
    cursor: pointer;
}

/* ---------- Tables ---------- */
.pg-table {
    width: 100%;
    border-collapse: collapse;
}

.pg-table th {
    padding: 14px 16px;
    background: var(--pg-bg-soft);
    border-bottom: 1px solid var(--pg-border);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: left;
    text-transform: uppercase;
    color: var(--pg-dark);
}

.pg-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--pg-border);
    font-size: 14px;
    color: var(--pg-text);
    vertical-align: middle;
}

.pg-table-wrap {
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    background: #fff;
}

.pg-table-wrap .pg-table tr:last-child td {
    border-bottom: none;
}

/* ---------- Media box (image or icon) ---------- */
.pg-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    background: var(--pg-media-bg);
    border-radius: var(--pg-radius-sm);
}

.pg-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--pg-img-fit);
    padding: var(--pg-img-pad);
    transition: transform 0.4s ease;
}

.pg-media > i {
    font-size: 40px;
    color: var(--pg-accent);
    opacity: 0.85;
    transition: transform 0.4s ease;
}

.pg-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.pg-thumb > i {
    font-size: 26px;
}

/* ---------- Product mini card ---------- */
.pg-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg-product:hover {
    border-color: var(--pg-accent);
    box-shadow: var(--pg-shadow-hover);
    transform: translateY(-5px);
}

.pg-product .pg-media {
    height: 210px;
    border-radius: 0;
}

.pg-product:hover .pg-media img,
.pg-product:hover .pg-media > i {
    transform: scale(1.06);
}

.pg-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 18px;
}

.pg-product-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--pg-muted);
}

.pg-product-name {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 16px;
    color: var(--pg-dark);
    text-decoration: none;
}

.pg-product-name:hover {
    color: var(--pg-accent);
}

.pg-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.pg-add {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--pg-radius-sm);
    background: var(--pg-btn-bg);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-add:hover {
    background: var(--pg-accent-dark);
    transform: scale(1.08);
}

/* ---------- Small bits ---------- */
.pg-price {
    font-weight: 700;
    color: var(--pg-accent);
}

.pg-price del {
    margin-right: 6px;
    font-weight: 500;
    font-size: 0.85em;
    color: #999;
}

.pg-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--pg-star);
    font-size: 12px;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    background: var(--pg-accent-soft);
    color: var(--pg-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pg-badge.success { background: rgba(39, 174, 96, 0.12); color: #1e8e4f; }
.pg-badge.warning { background: rgba(243, 156, 18, 0.14); color: #c77c02; }
.pg-badge.danger  { background: rgba(231, 76, 60, 0.12); color: #c0392b; }
.pg-badge.info    { background: rgba(52, 152, 219, 0.12); color: #2878b5; }
.pg-badge.muted   { background: #f0f0f0; color: #777; }

.pg-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-left: 3px solid var(--pg-accent);
    border-radius: var(--pg-radius-sm);
    background: var(--pg-accent-soft);
    font-size: 14px;
    color: var(--pg-text);
}

.pg-notice i {
    color: var(--pg-accent);
}

.pg-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    overflow: hidden;
    background: #fff;
}

.pg-qty button {
    width: 36px;
    border: none;
    background: var(--pg-bg-soft);
    color: var(--pg-dark);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-qty button:hover {
    background: var(--pg-accent);
    color: #fff;
}

.pg-qty input {
    width: 46px;
    height: 40px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-dark);
    -moz-appearance: textfield;
}

.pg-qty input::-webkit-outer-spin-button,
.pg-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pg-qty input:focus {
    outline: none;
}

.pg-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pg-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pg-border);
    border-radius: 50%;
    color: var(--pg-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-social a:hover {
    background: var(--pg-accent);
    border-color: var(--pg-accent);
    color: #fff;
    transform: translateY(-3px);
}

.pg-list-check {
    list-style: none;
}

.pg-list-check li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pg-muted);
}

.pg-list-check li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    top: 7px;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--pg-accent);
}

.pg-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pg-pagination a,
.pg-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    color: var(--pg-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-pagination a:hover,
.pg-pagination .active {
    background: var(--pg-accent);
    border-color: var(--pg-accent);
    color: #fff;
}

/* ---------- Sidebar widgets ---------- */
.pg-widget {
    margin-bottom: 32px;
}

.pg-widget:last-child {
    margin-bottom: 0;
}

.pg-widget-title {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg-border);
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 18px;
    color: var(--pg-dark);
}

.pg-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: var(--pg-accent);
}

.pg-cat-list {
    list-style: none;
}

.pg-cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pg-border);
    font-size: 14px;
    color: var(--pg-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-cat-list a:hover {
    color: var(--pg-accent);
    padding-left: 6px;
}

.pg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-tags a {
    padding: 7px 14px;
    border: 1px solid var(--pg-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pg-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-tags a:hover {
    background: var(--pg-accent);
    border-color: var(--pg-accent);
    color: #fff;
}

/* ---------- Tabs ---------- */
.pg-tab-pane {
    display: none;
    animation: pgFade 0.35s ease;
}

.pg-tab-pane.active {
    display: block;
}

@keyframes pgFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Accordion ---------- */
.pg-acc-item {
    margin-bottom: 12px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pg-acc-item.open {
    border-color: var(--pg-accent);
    box-shadow: var(--pg-shadow);
}

.pg-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--pg-dark);
    cursor: pointer;
}

.pg-acc-head i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pg-accent-soft);
    color: var(--pg-accent);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.pg-acc-item.open .pg-acc-head i {
    transform: rotate(45deg);
    background: var(--pg-accent);
    color: #fff;
}

.pg-acc-body {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--pg-muted);
}

.pg-acc-item.open .pg-acc-body {
    display: block;
}

/* ---------- Grids ---------- */
.pg-grid-2,
.pg-grid-3,
.pg-grid-4 {
    display: grid;
    gap: 24px;
}

.pg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Stacked table: rows become cards on phones (use data-label on td) */
@media (max-width: 767.98px) {
    .pg-table-stack thead {
        display: none;
    }

    .pg-table-stack tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--pg-border);
    }

    .pg-table-stack td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border: none;
        text-align: right;
    }

    .pg-table-stack td[data-label]::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-align: left;
        color: var(--pg-muted);
    }

    .pg-table-stack td.td-main {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .pg-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .pg-section { padding: 56px 0; }
    .pg-hero { padding: 44px 0; }
    .pg-hero h1 { font-size: 36px; }
    .pg-head { margin-bottom: 36px; }
    .pg-head h2, .pg-h2 { font-size: 30px; }
    .pg-grid-3,
    .pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .pg-section { padding: 44px 0; }
    .pg-section.tight { padding: 36px 0; }
    .pg-hero { padding: 36px 0; }
    .pg-hero h1 { font-size: 30px; }
    .pg-head h2, .pg-h2 { font-size: 26px; }
    .pg-card { padding: 22px; }
    .pg-form-row { grid-template-columns: minmax(0, 1fr); }
    .pg-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .pg-hero h1 { font-size: 26px; }
    .pg-hero p { font-size: 14px; }
    .pg-card { padding: 18px; }
    .pg-card-title { font-size: 18px; }
    .pg-grid-2,
    .pg-grid-3,
    .pg-grid-4 { gap: 14px; }
    .pg-product .pg-media { height: 170px; }
    .pg-product-body { padding: 14px; }
    .pg-btn-lg { padding: 14px 26px; }
}

@media (max-width: 379.98px) {
    .pg-grid-3,
    .pg-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   More shared pieces
   ========================================================================== */
.is-hidden {
    display: none !important;
}

.page-main {
    display: block;
}

.pg-photo img {
    padding: var(--pg-photo-pad);
    object-fit: var(--pg-photo-fit);
}

.pg-product {
    position: relative;
}

.pg-product-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--pg-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.pg-pay-icons {
    display: inline-flex;
    gap: 8px;
    font-size: 22px;
    color: #9a9a9a;
}

/* ---------- Checkout steps ---------- */
.pg-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 44px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.pg-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-steps li:not(:last-child)::after {
    content: '';
    width: 70px;
    height: 2px;
    background: var(--pg-border);
}

.pg-steps li.done:not(:last-child)::after {
    background: var(--pg-accent);
}

.pg-steps a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--pg-muted);
    font-size: 14px;
    font-weight: 600;
}

.pg-step-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pg-border);
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pg-steps .active a,
.pg-steps .done a {
    color: var(--pg-dark);
}

.pg-steps .active .pg-step-num {
    border-color: var(--pg-accent);
    background: var(--pg-accent);
    color: #fff;
    box-shadow: 0 0 0 5px var(--pg-accent-soft);
}

.pg-steps .done .pg-step-num {
    border-color: var(--pg-accent);
    color: var(--pg-accent);
}

/* ---------- Radio cards (shipping / payment) ---------- */
.pg-radio-card {
    display: block;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pg-radio-card:hover,
.pg-radio-card.selected {
    border-color: var(--pg-accent);
}

.pg-radio-card.selected {
    background: var(--pg-accent-soft);
}

.pg-radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-dark);
}

.pg-radio-row input {
    accent-color: var(--pg-accent);
}

.pg-radio-row .pg-radio-end {
    margin-left: auto;
}

.pg-radio-desc {
    display: none;
    margin-top: 10px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pg-muted);
}

.pg-radio-card.selected .pg-radio-desc {
    display: block;
}

/* ---------- Blog post card (blog, blog single, home) ---------- */
.pg-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pg-post:hover {
    box-shadow: var(--pg-shadow-hover);
    transform: translateY(-5px);
}

.pg-post-media {
    position: relative;
}

.pg-post-media .pg-media {
    height: 230px;
    border-radius: 0;
}

.pg-post:hover .pg-media img {
    transform: scale(1.05);
}

.pg-post-cat {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--pg-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.pg-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.pg-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    list-style: none;
    font-size: 12px;
    color: var(--pg-muted);
}

.pg-post-meta i {
    margin-right: 5px;
    color: var(--pg-accent);
}

.pg-post-title {
    margin-bottom: 10px;
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 20px;
    line-height: 1.35;
}

.pg-post-title a {
    color: var(--pg-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg-post-title a:hover {
    color: var(--pg-accent);
}

.pg-post-excerpt {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pg-muted);
}

.pg-post-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pg-accent);
}

.pg-post-more i {
    transition: transform 0.3s ease;
}

.pg-post-more:hover i {
    transform: translateX(4px);
}

/* ---------- Blog sidebar (blog, blog single) ---------- */
.pg-mini-post {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
}

.pg-mini-post .pg-media {
    width: 72px;
    height: 64px;
    flex-shrink: 0;
}

.pg-mini-post strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pg-dark);
    transition: color 0.3s ease;
}

.pg-mini-post:hover strong {
    color: var(--pg-accent);
}

.pg-mini-post span {
    font-size: 12px;
    color: var(--pg-muted);
}

@media (max-width: 767.98px) {
    .pg-steps {
        gap: 8px;
        margin-bottom: 32px;
    }

    .pg-steps li:not(:last-child)::after {
        width: 24px;
    }

    .pg-step-label {
        display: none;
    }

    .pg-steps .active .pg-step-label {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .pg-post-media .pg-media {
        height: 200px;
    }

    .pg-post-body {
        padding: 18px;
    }

    .pg-post-title {
        font-size: 18px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Totals rows (cart, checkout) */
.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pg-border);
    font-size: 14px;
    color: var(--pg-muted);
}

.totals-row strong {
    color: var(--pg-dark);
}

.totals-grand {
    border-bottom: none;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--pg-dark);
}

.totals-grand strong {
    font-size: 22px;
    color: var(--pg-accent);
}

.cart-secure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--pg-muted);
}

.cart-secure i.fa-lock,
.cart-secure i.fa-shield-halved {
    color: var(--pg-accent);
    margin-right: 4px;
}
