/* Partgettr Marketplace Frontend Styles v1.6.5 - Optimized */

/* ==========================================================================
   CSS Variables for Easy Theming
   ========================================================================== */
:root {
    --pg-primary: #b2222d;
    --pg-primary-hover: #9b1b1f;
    --pg-secondary: #333;
    --pg-secondary-hover: #000;
    --pg-text-light: #666;
    --pg-text-dark: #1c1e21;
    --pg-border-light: #eee;
    --pg-border-medium: #ddd;
    --pg-border-dark: #dee2e6;
    --pg-background-light: #f9f9f9;
    --pg-background-alt: #f8f9fa;
    --pg-background-white: #fff;
    --pg-radius-sm: 4px;
    --pg-radius-md: 8px;
    --pg-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --pg-shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.12);
    --pg-transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Base & Layout Styles
   ========================================================================== */
.partgettr-shortcode-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 1rem 0;
}

.partgettr-vendor-store {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.partgettr-vendor-store h2 {
    color: var(--pg-secondary);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.partgettr-vendor-store h3 {
    color: var(--pg-secondary);
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Fix for WooCommerce clearfix */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

ul.products li.product-card:empty {
    display: none;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.partgettr-button,
#load-more-products,
.filter-container .button,
.product-card .button,
.product-card .add_to_cart_button,
.list-item-actions .button,
.list-item-actions .add_to_cart_button,
.single-product div.product form.cart .button,
.partgettr-vendor-checkout-box .checkout-button {
    background-color: var(--pg-primary) !important;
    border: none !important;
    border-radius: var(--pg-radius-sm) !important;
    color: var(--pg-background-white) !important;
    cursor: pointer;
    display: inline-block !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 0.55rem 1rem !important; /* Adjusted padding for consistency */
    text-decoration: none !important;
    text-shadow: none !important;
    transition: background-color 0.3s, transform 0.2s;
}

/* Specific styles for buttons in different contexts */
.partgettr-vendor-checkout-box .checkout-button {
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
    text-align: center !important;
    border-radius: 8px !important;
    transition: var(--pg-transition);
}

.partgettr-vendor-checkout-box .checkout-button:hover {
    transform: scale(1.03);
    position: relative;
}

.partgettr-button:hover,
#load-more-products:hover,
.filter-container .button:hover,
.product-card .button:hover,
.product-card .add_to_cart_button:hover,
.list-item-actions .button:hover,
.list-item-actions .add_to_cart_button:hover,
.single-product div.product form.cart .button:hover,
.partgettr-vendor-checkout-box .checkout-button:hover {
    background-color: var(--pg-primary-hover) !important;
}

#load-more-products {
    font-size: 1rem;
    padding: 12px 24px !important;
}

#load-more-products:hover {
    transform: translateY(-2px);
}

.partgettr-button.partgettr-button-secondary {
    background-color: var(--pg-secondary) !important;
}

.partgettr-button.partgettr-button-secondary:hover {
    background-color: var(--pg-secondary-hover) !important;
}

form.woocommerce-cart-form .actions .button[name="update_cart"] {
    background-color: transparent !important;
    border: 2px solid var(--pg-primary) !important;
    color: var(--pg-primary) !important;
}

form.woocommerce-cart-form .actions .button[name="update_cart"]:hover {
    background-color: var(--pg-primary) !important;
    color: var(--pg-background-white) !important;
}

/* ==========================================================================
   Product Grids & Lists
   ========================================================================== */
.products,
.woocommerce ul.products,
.partgettr-vendor-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0;
}

/* Dynamic Column Shortcode Support */
.partgettr-shortcode-wrapper ul.products.columns-1 { grid-template-columns: repeat(1, 1fr); }
.partgettr-shortcode-wrapper ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.partgettr-shortcode-wrapper ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.partgettr-shortcode-wrapper ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.partgettr-shortcode-wrapper ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.partgettr-shortcode-wrapper ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }

#product-list-view-store {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.load-more-container {
    grid-column: 1 / -1;
    padding: 2rem 0;
    text-align: center;
}

/* ==========================================================================
   Cards (Product, Vendor, List Item)
   ========================================================================== */
.partgettr-vendor-card,
.product-list-item,
ul.products li.product-card {
    background: var(--pg-background-white) !important;
    border: 1px solid var(--pg-border-light) !important;
    border-radius: var(--pg-radius-md) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important; /* Overrides default WC styles */
    transition: var(--pg-transition);
    overflow: hidden;
}

.partgettr-vendor-card:hover,
.product-list-item:hover,
ul.products li.product-card:hover,
.pg-store-cart-card:not(.selected):hover {
    border-color: var(--pg-border-medium);
    box-shadow: var(--pg-shadow-medium);
    transform: scale(1.03);
    z-index: 10;
    position: relative;
}

/* --- Product Card Specifics --- */
ul.products li.product-card {
    float: none !important; /* Override legacy floats */
    padding: 15px !important;
    text-align: center !important;
    width: auto !important;
}

.product-card a {
    box-shadow: none !important;
    color: inherit !important;
    text-decoration: none !important;
}

.product-card .product-title {
    color: var(--pg-secondary);
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 10px 0 0.5rem;
}

/* --- Product List Item Specifics --- */
.product-list-item {
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1rem;
}

.list-item-details {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.list-item-title {
    color: var(--pg-text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-align: left;
}

.list-item-title a {
    color: inherit;
    text-decoration: none;
}

.list-item-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.75rem;
    justify-content: center;
    margin-left: auto;
    min-width: 120px;
}

.list-item-actions .button {
    margin-top: 0;
    text-align: center;
    width: 100%;
}

/* --- Card & List Shared Components --- */
.product-card-image-wrapper,
.list-item-image {
    position: relative;
}

.product-card-image-wrapper {
    margin-bottom: 1rem;
}

.list-item-image {
    flex-shrink: 0;
    height: 120px;
    width: 120px;
}

.pg-gallery-image {
    aspect-ratio: 1/1;
    border-radius: var(--pg-radius-sm);
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.price {
    color: var(--pg-secondary);
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0.5rem 0;
}

.price del {
    color: #888;
    font-weight: normal;
    margin-right: 0.5em;
}

.price ins {
    color: var(--pg-text-dark);
    font-weight: bold;
    text-decoration: none;
}

span.onsale {
    align-items: center;
    background-color: var(--pg-primary) !important;
    border-radius: 50%;
    color: white !important;
    display: flex;
    font-size: 0.8rem;
    font-weight: bold;
    height: 46px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    position: absolute;
    width: 46px;
    z-index: 3;
}

.product-card-image-wrapper span.onsale { right: 10px; top: 10px; }
.list-item-image span.onsale { left: 8px; top: 8px; }

/* Sold By Info */
.partgettr-sold-by {
    color: var(--pg-text-light);
    display: block;
    font-size: 0.85em;
    margin-top: 0.5em;
}

.partgettr-sold-by a {
    color: #444;
    font-weight: 500;
    text-decoration: none;
}

.partgettr-sold-by a:hover,
.list-item-title a:hover,
.vendor-card-name a:hover,
.partgettr-vendor-name-simple a:hover,
.vendor-details-header .vendor-name a:hover,
.vendor-checkout-header .vendor-name-link:hover,
.vendor-checkout-header .vendor-logo-link:hover,
.vendor-contact-info a:hover {
    color: var(--pg-primary);
}

/* ==========================================================================
   Filters & Search
   ========================================================================== */
.filter-container {
    align-items: center;
    background: var(--pg-background-light);
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-light);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
}

.filter-group {
    min-width: 150px;
    position: relative;
}

.filter-group select {
    background: var(--pg-background-white);
    border: 1px solid var(--pg-border-medium);
    border-radius: var(--pg-radius-sm);
    font-size: 1em;
    padding: 10px;
    width: 100%;
}

.partgettr-vendor-search-wrapper {
    background-color: var(--pg-background-white);
    border: 1px solid var(--pg-border-medium);
    border-radius: var(--pg-radius-md);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.partgettr-vendor-search-input {
    border: 1px solid #ccc;
    border-radius: var(--pg-radius-sm);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.partgettr-vendor-search-input:focus {
    border-color: var(--pg-primary) !important;
    box-shadow: 0 0 0 3px rgba(178, 34, 45, 0.4) !important;
    outline: none !important;
}

/* ==========================================================================
   Vendor Page & Components
   ========================================================================== */
.vendor-card-header {
    margin-bottom: 40px;
    position: relative;
}

.vendor-card-banner {
    background-color: var(--pg-secondary);
    height: 100px !important;
    object-fit: cover;
    width: 100%;
}

.vendor-card-logo-link {
    background-color: var(--pg-background-white);
    border: 4px solid var(--pg-background-white);
    border-radius: 50%;
    bottom: -40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    display: block;
    height: 80px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    transform: translateX(-50%);
    transition: transform 0.2s ease-in-out;
    width: 80px;
}

.vendor-card-logo-link:hover {
    transform: translateX(-50%) scale(1.05);
}

.vendor-card-logo {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vendor-card-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 1rem 1rem;
    text-align: center;
}

.vendor-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.vendor-card-name a {
    color: var(--pg-secondary);
    text-decoration: none;
}

.vendor-card-description {
    color: var(--pg-text-light);
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vendor-card-footer {
    padding: 0 1rem 1.5rem;
    text-align: center;
}

/* ==========================================================================
   Cart & Checkout
   ========================================================================== */
.partgettr-cart-layout-wrapper {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.partgettr-cart-layout-wrapper > form.woocommerce-cart-form {
    flex: 1 1 60%;
    min-width: 320px;
}

.partgettr-cart-layout-wrapper > .cart-collaterals {
    flex: 1 1 30%;
    min-width: 280px;
}

.woocommerce-cart table.cart thead th {
    background-color: var(--pg-primary);
    border: 1px solid var(--pg-primary-hover);
    color: var(--pg-background-white);
}

.woocommerce-cart table.cart .product-name a {
    color: var(--pg-primary) !important;
}

.woocommerce-cart table.cart .product-name a:hover {
    color: var(--pg-primary-hover) !important;
}

.woocommerce-cart table.cart .quantity .qty {
    width: 5em;
    text-align: center;
}

form.woocommerce-cart-form .actions .coupon {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding-top: .5rem;
}

form.woocommerce-cart-form .actions .coupon .input-text {
    flex-grow: 1;
    min-width: 200px;
}

.partgettr-multi-vendor-checkout h2 {
    color: var(--pg-secondary) !important;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.partgettr-vendor-checkout-box,
.partgettr-vendor-details-box {
    background: var(--pg-background-alt);
    border: 1px solid var(--pg-border-dark);
    border-radius: var(--pg-radius-md);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.vendor-checkout-header {
    align-items: center;
    border-bottom: 1px solid var(--pg-border-dark);
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.vendor-checkout-header .vendor-logo-link,
.vendor-checkout-header .vendor-name-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}
.vendor-checkout-header .vendor-logo-link:hover,
.vendor-checkout-header .vendor-name-link:hover {
    opacity: 0.8;
}

.vendor-checkout-header .vendor-logo {
    border: 1px solid var(--pg-border-light) !important;
    border-radius: 50%;
    flex-shrink: 0;
    height: 100px;
    object-fit: cover;
    width: 100px;
}

.vendor-details-header {
    align-items: center;
    border-bottom: 1px solid var(--pg-border-dark);
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.vendor-checkout-header .vendor-name,
.vendor-details-header .vendor-name {
    color: var(--pg-secondary);
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
}

.vendor-details-header .vendor-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.vendor-checkout-header .vendor-subtotal {
    color: #555;
    font-size: 1.2em;
    font-weight: 700;
}

/* --- Driveoff Page Styles --- */
.driveoff-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 960px) {
    .driveoff-columns {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.driveoff-customer-details h3,
.partgettr-order-summary h3 {
    font-size: 1.5em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pg-border-medium);
}

.driveoff-logged-in-customer {
    background-color: var(--pg-background-alt);
    border: 1px solid var(--pg-border-dark);
    border-radius: var(--pg-radius-md);
    padding: 1rem 1.5rem;
}

.driveoff-form-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) {
    .driveoff-form-fields.woocommerce-billing-fields__field-wrapper,
    .driveoff-form-fields.woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .driveoff-form-fields .form-row-first { grid-column: 1; }
    .driveoff-form-fields .form-row-last { grid-column: 2; }
    .driveoff-form-fields .form-row-full,
    .driveoff-form-fields .form-row-wide {
        grid-column: 1 / -1;
    }
}
.driveoff-form-fields .form-row {
    margin: 0;
    padding: 0;
}
.driveoff-form-fields .form-row label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.driveoff-form-fields .input-text,
.driveoff-form-fields select,
.driveoff-form-fields .select2-container {
    width: 100%;
}

.driveoff-form-fields .input-text,
.driveoff-form-fields select {
    padding: 0.75rem;
    border: 1px solid var(--pg-border-medium);
    border-radius: var(--pg-radius-sm);
    background-color: var(--pg-background-white);
}

.woocommerce-shipping-fields {
    margin-top: 2rem;
}

#ship-to-different-address-checkbox {
    margin-right: 0.5rem;
}

.partgettr-store-cart-selector {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pg-border-medium);
}

.partgettr-store-cart-selector h3 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

.pg-store-cart-selector-desc {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--pg-text-light);
}

.pg-store-cart-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.pg-store-cart-card {
    background-color: var(--pg-background-white);
    border: 1px solid var(--pg-border-medium);
    border-radius: var(--pg-radius-md);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: var(--pg-transition);
}

.pg-store-card-content {
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.pg-store-cart-card .store-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--pg-border-light);
}

.pg-store-cart-card .store-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--pg-text-dark);
    flex-grow: 1;
}

.pg-store-cart-card .store-cart-total {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--pg-secondary);
}

.pg-store-cart-card .store-cart-total .woocommerce-Price-currencySymbol {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pg-store-cart-card.selected {
    background-color: var(--pg-primary);
    border-color: #000;
    border-width: 1px;
    color: var(--pg-background-white);
    transform: scale(1.05);
}

.pg-store-cart-card.selected .store-name,
.pg-store-cart-card.selected .store-cart-total {
    color: var(--pg-background-white);
}

.pg-store-cart-card .selected-strip {
    background-color: var(--pg-background-white);
    color: var(--pg-primary);
    padding: 0.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #000;
}

.partgettr-order-summary {
    background-color: var(--pg-background-alt);
    padding: 2rem;
    border-radius: var(--pg-radius-md);
    border: 1px solid var(--pg-border-dark);
}

.partgettr-order-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}
.partgettr-order-table th,
.partgettr-order-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--pg-border-medium);
}
.partgettr-order-table thead th {
    font-weight: 600;
}
.partgettr-order-table tfoot td {
    font-size: 1.2em;
}

.payment-method-description {
    color: var(--pg-text-light);
    font-size: 0.9em;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.partgettr-checkout-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.pg-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg-payment-method-card {
    border: 2px solid var(--pg-border-medium);
    border-radius: var(--pg-radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--pg-transition);
    position: relative;
    background-color: var(--pg-background-white);
}

.pg-payment-method-card:hover {
    border-color: var(--pg-primary);
    box-shadow: var(--pg-shadow-light);
}

.pg-payment-method-card input[type="radio"] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 1.25rem;
    width: 1.25rem;
}

.pg-payment-method-card:has(input:checked) {
    border-color: var(--pg-primary);
    background-color: #fdf5f6;
}

.pg-payment-method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pg-payment-method-content .payment-logo {
    height: 32px;
    max-width: 100px;
    object-fit: contain;
}

.pg-payment-method-content .payment-handle {
    font-weight: 600;
    color: var(--pg-text-dark);
}

/* --- Modal Styles --- */
.pg-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pg-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: var(--pg-radius-md);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pg-modal-content h4 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--pg-text-dark);
}

.pg-modal-close {
    color: #aaa;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.pg-modal-close:hover,
.pg-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* --- Validation Error Styling --- */
.form-row.pg-input-error .input-text,
.form-row.pg-input-error select,
.form-row.pg-input-error .select2-selection {
    border-color: var(--pg-primary) !important;
    background-color: #fff5f5 !important;
}

.pg-validation-message {
    color: var(--pg-primary);
    font-size: 0.875em;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .products,
    .partgettr-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partgettr-shortcode-wrapper ul.products.columns-4,
    .partgettr-shortcode-wrapper ul.products.columns-5,
    .partgettr-shortcode-wrapper ul.products.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .pg-store-cart-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products,
    .partgettr-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partgettr-shortcode-wrapper ul.products.columns-3,
    .partgettr-shortcode-wrapper ul.products.columns-4,
    .partgettr-shortcode-wrapper ul.products.columns-5,
    .partgettr-shortcode-wrapper ul.products.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Cart Responsive Styles --- */
    .woocommerce-cart table.cart {
        border: none;
        display: block;
        width: 100%;
    }

    .woocommerce-cart table.cart thead {
        display: none;
    }

    .woocommerce-cart table.cart tbody,
    .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
        display: block;
        width: 100%;
    }

    .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border: 1px solid var(--pg-border-medium);
        border-radius: var(--pg-radius-md);
    }

    .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item:nth-child(2n) {
        background-color: var(--pg-background-alt);
    }

    .woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item:last-child {
        margin-bottom: 0;
    }

    .woocommerce-cart table.cart td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.5rem 0 !important;
        border: none;
        width: 100% !important;
    }

    .woocommerce-cart table.cart td[data-title]::before {
        content: attr(data-title);
        font-weight: 600;
        text-align: left;
        color: var(--pg-secondary);
        padding-right: 1rem;
    }

    .woocommerce-cart table.cart td.product-remove { order: 1; padding-bottom: 1rem !important; justify-content: flex-start;}
    .woocommerce-cart table.cart td.product-thumbnail { order: 2; display: block !important; text-align: center; padding-bottom: 1rem !important; }
    .woocommerce-cart table.cart td.product-name { order: 3; display: block !important; text-align: left; padding: 0.5rem 0 1rem !important; }
    .woocommerce-cart table.cart td.product-price { order: 4; }
    .woocommerce-cart table.cart td.product-quantity { order: 5; }
    .woocommerce-cart table.cart td.product-subtotal { order: 6; }

    .woocommerce-cart table.cart td.product-remove::before,
    .woocommerce-cart table.cart td.product-thumbnail::before,
    .woocommerce-cart table.cart td.product-name::before {
        display: none;
    }

    .woocommerce-cart table.cart td.product-thumbnail a {
        display: inline-block;
        max-width: 120px;
        margin: 0 auto;
        background: var(--pg-background-white);
        border: 1px solid var(--pg-border-light);
        padding: 0.25rem;
        border-radius: var(--pg-radius-sm);
    }

    .woocommerce-cart table.cart td.product-name a {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--pg-text-dark) !important;
    }

    .woocommerce-cart table.cart td.product-name .partgettr-sold-by {
        font-size: 0.8rem;
        font-weight: 400;
        margin-top: 0.25rem;
        color: var(--pg-text-light);
    }

    .woocommerce-cart table.cart td.product-quantity .quantity {
        margin: 0;
        max-width: 80px;
    }

    .partgettr-cart-layout-wrapper {
        flex-direction: column;
    }

    .partgettr-cart-layout-wrapper > form.woocommerce-cart-form,
    .partgettr-cart-layout-wrapper > .cart-collaterals {
        flex-basis: 100%;
        min-width: 100%;
    }
    .pg-store-cart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .product-list-item {
        flex-direction: column;
        align-items: stretch;
    }
    .list-item-details {
        align-self: stretch;
    }
    .list-item-actions {
        align-items: stretch;
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
        width: 100%;
    }
    .list-item-actions .price {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products,
    .partgettr-vendor-grid {
        grid-template-columns: 1fr;
    }
    .partgettr-shortcode-wrapper ul.products.columns-2,
    .partgettr-shortcode-wrapper ul.products.columns-3,
    .partgettr-shortcode-wrapper ul.products.columns-4,
    .partgettr-shortcode-wrapper ul.products.columns-5,
    .partgettr-shortcode-wrapper ul.products.columns-6 {
        grid-template-columns: 1fr;
    }
    .pg-store-cart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ==========================================================================
   Modern Carousel Styles
   ========================================================================== */
.pg-carousel-modern {
    position: relative;
    padding: 0 50px 50px;
}

.pg-carousel-modern .swiper {
    overflow: hidden;
}

/* Modern Card Style */
.pg-carousel-card {
    display: block;
    background: var(--pg-background-white);
    border-radius: var(--pg-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--pg-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pg-carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pg-shadow-medium);
}

.pg-carousel-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pg-background-light);
}

.pg-carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pg-carousel-card:hover .pg-carousel-card-image img {
    transform: scale(1.05);
}

.pg-carousel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pg-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
}

.pg-carousel-card-content {
    padding: 20px 16px;
    text-align: center;
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
}

.pg-carousel-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--e-global-color-text, var(--pg-text-dark));
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    transition: color 0.2s ease;
}

.pg-carousel-card:hover .pg-carousel-card-title {
    color: var(--e-global-color-primary, var(--pg-primary));
}

.pg-carousel-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--e-global-color-primary, var(--pg-primary));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: rgba(178, 34, 45, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.pg-carousel-card-price .woocommerce-Price-currencySymbol {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pg-carousel-card-price del {
    color: var(--pg-text-light);
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}

.pg-carousel-card-price ins {
    text-decoration: none;
}

/* Navigation Arrows - Modern */
.pg-carousel-modern .swiper-button-prev,
.pg-carousel-modern .swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    background: var(--pg-background-white) !important;
    border: 2px solid var(--e-global-color-text, var(--pg-secondary)) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: calc(50% - 25px);
    color: var(--e-global-color-text, var(--pg-secondary)) !important;
}

.pg-carousel-modern .swiper-button-prev {
    left: 0;
}

.pg-carousel-modern .swiper-button-next {
    right: 0;
}

.pg-carousel-modern .swiper-button-prev:hover,
.pg-carousel-modern .swiper-button-next:hover {
    background: var(--e-global-color-primary, var(--pg-primary)) !important;
    border-color: var(--e-global-color-primary, var(--pg-primary)) !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(178, 34, 45, 0.3) !important;
}

.pg-carousel-modern .swiper-button-prev::after,
.pg-carousel-modern .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

/* Pagination - Modern */
.pg-carousel-modern .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.pg-carousel-modern .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--pg-border-medium);
    opacity: 1;
    transition: var(--pg-transition);
}

.pg-carousel-modern .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary, var(--pg-primary));
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .pg-carousel-modern {
        padding: 0 40px 45px;
    }

    .pg-carousel-modern .swiper-button-prev,
    .pg-carousel-modern .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .pg-carousel-modern .swiper-button-prev::after,
    .pg-carousel-modern .swiper-button-next::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pg-carousel-modern {
        padding: 0 30px 40px;
    }

    .pg-carousel-card-title {
        font-size: 13px;
        min-height: 36px;
    }

    .pg-carousel-card-price {
        font-size: 14px;
    }
}

/* ==========================================================================
   Modern All Products Filter Bar Styles
   ========================================================================== */

/* Modern Filter Bar Container */
.pg-filter-bar-modern {
    background: var(--pg-background-white);
    border: 1px solid var(--pg-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Row 1: Main Filters */
.pg-filter-row-1 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Search Input */
.pg-filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.pg-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pg-text-light);
    pointer-events: none;
    z-index: 1;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pg-filter-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 54px !important;
    border: 1px solid var(--pg-border-medium);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    line-height: 1.5;
    height: 48px;
    box-sizing: border-box;
}

.pg-filter-search input:focus {
    outline: none;
    border-color: var(--e-global-color-primary, var(--pg-primary));
    box-shadow: 0 0 0 3px rgba(178, 34, 45, 0.1);
}

/* Vehicle & Vendor Filters */
.pg-filter-vehicle {
    display: flex;
    gap: 0.75rem;
}

.pg-filter-vendor {
    display: none; /* Hidden by default, shown via widget settings */
    gap: 0.75rem;
}

.pg-filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--pg-border-medium);
    border-radius: 8px;
    font-size: 15px;
    background: var(--pg-background-white);
    color: var(--pg-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.pg-filter-select:hover:not(:disabled) {
    border-color: var(--e-global-color-primary, var(--pg-primary));
}

.pg-filter-select:focus {
    outline: none;
    border-color: var(--e-global-color-primary, var(--pg-primary));
    box-shadow: 0 0 0 3px rgba(178, 34, 45, 0.1);
}

.pg-filter-select:disabled {
    background: var(--pg-background-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Row 2: Actions & View Controls */
.pg-filter-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Filter Action Buttons */
.pg-filter-actions {
    display: flex;
    gap: 0.75rem;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    height: 48px;
}

.pg-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    margin: 0;
    vertical-align: middle;
}

.pg-btn-primary {
    background: var(--e-global-color-primary, var(--pg-primary));
    color: white;
}

.pg-btn-primary:hover {
    background: var(--pg-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178, 34, 45, 0.3);
}

.pg-btn-secondary {
    background: var(--pg-background-light);
    color: var(--pg-text-dark);
}

.pg-btn-secondary:hover {
    background: var(--pg-border-medium);
}

/* View Controls */
.pg-view-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pg-product-count {
    font-size: 14px;
    color: var(--pg-text-light);
    font-weight: 500;
}

/* View Toggle Buttons */
.pg-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--pg-background-light);
    padding: 4px;
    border-radius: 8px;
}

.pg-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--pg-text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-view-btn:hover {
    color: var(--e-global-color-primary, var(--pg-primary));
    background: rgba(178, 34, 45, 0.1);
}

.pg-view-btn.active {
    background: var(--e-global-color-primary, var(--pg-primary));
    color: white;
    box-shadow: 0 2px 4px rgba(178, 34, 45, 0.2);
}

/* View Panes */
.pg-view-pane {
    display: none;
}

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

/* ==========================================================================
   Modern List View Layout
   ========================================================================== */

.pg-list-item {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 280px 2rem 1fr;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    grid-gap: 2rem; /* Safari fallback */
    padding: 1.5rem;
    background: var(--pg-background-white);
    border: 1px solid var(--pg-border-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease; /* Safari */
}

/* Safari Grid fallback positioning */
.pg-list-item > .pg-list-image {
    -ms-grid-column: 1;
}

.pg-list-item > .pg-list-content {
    -ms-grid-column: 3;
}

.pg-list-item:hover {
    border-color: var(--pg-border-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
}

/* List Item Image */
.pg-list-image {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--pg-background-light);
}

.pg-list-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.pg-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
    font-family: 'object-fit: cover;'; /* IE11 polyfill */
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
}

.pg-list-item:hover .pg-list-image img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.pg-list-image .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* List Item Content */
.pg-list-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pg-list-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

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

.pg-list-title a:hover {
    color: var(--e-global-color-primary, var(--pg-primary));
}

/* List Item Meta (Rating & Compatibility) */
.pg-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* List Item Description */
.pg-list-description {
    color: var(--pg-text-medium);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.pg-list-desc-text {
    display: inline;
}

.pg-list-read-more {
    display: inline;
    color: var(--e-global-color-primary, var(--pg-primary));
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.pg-list-read-more:hover {
    color: var(--pg-primary-hover);
    text-decoration: underline;
}

/* List Item Footer (Price & Actions) */
.pg-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--pg-border-light);
}

.pg-list-price-wrapper {
    flex-shrink: 0;
}

.pg-list-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--e-global-color-primary, var(--pg-primary));
    display: block;
}

.pg-list-price del {
    font-size: 1.25rem;
    color: var(--pg-text-light);
    font-weight: 400;
    margin-right: 0.5rem;
}

.pg-list-price ins {
    text-decoration: none;
    color: var(--e-global-color-primary, var(--pg-primary));
}

/* List Item Actions */
.pg-list-actions {
    display: flex;
    gap: 0.75rem;
}

.pg-list-actions .button,
.pg-list-actions .added_to_cart {
    padding: 0.875rem 1.75rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Style Add to Cart button with theme colors */
.pg-list-item .button.add_to_cart_button,
.pg-list-item .button.product_type_simple,
.pg-list-item .button.product_type_variable {
    background: var(--e-global-color-primary, var(--pg-primary));
    color: white;
    border: none;
}

.pg-list-item .button.add_to_cart_button:hover,
.pg-list-item .button.product_type_simple:hover,
.pg-list-item .button.product_type_variable:hover {
    background: var(--pg-primary-hover);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 34, 45, 0.3);
}

.pg-list-item .added_to_cart {
    background: #28a745;
    color: white;
    border: none;
}

.pg-list-item .added_to_cart:hover {
    background: #218838;
    color: white !important;
}

/* Admin Actions in List View */
.pg-list-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--pg-border-light);
}

.pg-list-admin-actions .button {
    padding: 0.5rem 1rem;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pg-filter-row-1 {
        grid-template-columns: 1fr;
    }

    .pg-filter-vehicle,
    .pg-filter-vendor {
        flex-wrap: wrap;
    }

    /* List View Responsive */
    .pg-list-item {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }

    .pg-list-image {
        height: 220px;
    }

    .pg-list-title {
        font-size: 1.25rem;
    }

    .pg-list-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pg-filter-bar-modern {
        padding: 1rem;
    }

    .pg-filter-row-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .pg-filter-actions {
        width: 100%;
    }

    .pg-btn {
        flex: 1;
        justify-content: center;
    }

    .pg-view-controls {
        width: 100%;
        justify-content: space-between;
    }

    /* List View Responsive */
    .pg-list-item {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .pg-list-image {
        height: 250px;
        width: 100%;
    }

    .pg-list-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .pg-list-actions {
        width: 100%;
    }

    .pg-list-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pg-filter-vehicle,
    .pg-filter-vendor {
        flex-direction: column;
    }

    .pg-filter-select {
        width: 100%;
    }

    .pg-filter-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   WooCommerce My Account - Modern Navigation
   ========================================================================== */

/* My Account Page Layout */
.partgettr-account-wrapper {
    display: grid !important;
    grid-template-columns: 400px 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
}

.partgettr-account-wrapper .woocommerce-MyAccount-navigation,
.partgettr-account-wrapper nav.woocommerce-MyAccount-navigation {
    max-width: 400px;
    width: 100% !important;
}

.partgettr-my-account-nav,
.partgettr-account-wrapper .partgettr-my-account-nav {
    position: sticky !important;
    top: 150px !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.partgettr-account-wrapper .woocommerce-MyAccount-content,
.partgettr-account-wrapper div.woocommerce-MyAccount-content {
    background: var(--pg-background-white);
    border: 1px solid var(--pg-border-light);
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
    width: 100%;
}

/* Remove padding/styling when vendor dashboard is displayed */
.woocommerce-account .woocommerce-MyAccount-content--vendor-dashboard,
.partgettr-account-wrapper .woocommerce-MyAccount-content:has(.partgettr-vendor-dashboard) {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Ensure vendor dashboard fills full width */
.woocommerce-MyAccount-content .partgettr-vendor-dashboard {
    width: 100%;
    max-width: 100%;
}

/* Navigation Container Styling */
.partgettr-my-account-nav,
.partgettr-account-wrapper .partgettr-my-account-nav {
    background: var(--pg-background-white) !important;
    border: 1px solid var(--pg-border-light) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Vendor Welcome Section */
.pg-vendor-welcome,
.pg-customer-welcome {
    background: linear-gradient(135deg, var(--e-global-color-primary, var(--pg-primary)) 0%, #9b1b1f 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pg-welcome-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-welcome-icon svg {
    color: white;
}

.pg-welcome-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg-vendor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--e-global-color-primary, var(--pg-primary));
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pg-vendor-badge svg {
    width: 18px;
    height: 18px;
}

.pg-welcome-text p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Vendor Quick Stats */
.pg-vendor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--pg-border-light);
}

.pg-stat {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.pg-stat:first-child {
    border-right: 1px solid var(--pg-border-light);
}

.pg-stat:hover {
    background: var(--pg-background-light);
}

.pg-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(178, 34, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-stat-icon svg {
    color: var(--e-global-color-primary, var(--pg-primary));
}

.pg-stat-content {
    flex: 1;
}

.pg-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pg-text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pg-stat-label {
    font-size: 0.875rem;
    color: var(--pg-text-medium);
}

/* Vendor Dashboard Link */
.pg-dashboard-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--pg-background-white);
    border-bottom: 1px solid var(--pg-border-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg-dashboard-link:hover {
    background: linear-gradient(135deg, rgba(178, 34, 45, 0.05) 0%, rgba(155, 27, 31, 0.05) 100%);
    transform: translateX(4px);
}

.pg-dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--e-global-color-primary, var(--pg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-dashboard-icon svg {
    color: white;
}

.pg-dashboard-text {
    flex: 1;
}

.pg-dashboard-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pg-text-dark);
    margin-bottom: 0.25rem;
}

.pg-dashboard-subtitle {
    font-size: 0.875rem;
    color: var(--pg-text-medium);
}

.pg-dashboard-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.pg-dashboard-link:hover .pg-dashboard-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.pg-dashboard-arrow svg {
    color: var(--pg-text-medium);
}

/* Navigation Menu */
.woocommerce-MyAccount-navigation,
.partgettr-my-account-nav .woocommerce-MyAccount-navigation {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul,
.partgettr-my-account-nav .woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-MyAccount-navigation li,
.partgettr-my-account-nav .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--pg-border-light) !important;
    list-style: none !important;
}

.woocommerce-MyAccount-navigation li:last-child,
.partgettr-my-account-nav .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}

.pg-nav-link,
a.pg-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    padding: 1rem 1.5rem !important;
    color: var(--pg-text-dark) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.pg-nav-link:hover,
a.pg-nav-link:hover {
    background: var(--pg-background-light) !important;
    color: var(--e-global-color-primary, var(--pg-primary)) !important;
    padding-left: 1.75rem !important;
}

.woocommerce-MyAccount-navigation li.is-active .pg-nav-link,
.partgettr-my-account-nav .woocommerce-MyAccount-navigation li.is-active .pg-nav-link,
.woocommerce-MyAccount-navigation li.is-active a.pg-nav-link {
    background: rgba(178, 34, 45, 0.1) !important;
    color: var(--e-global-color-primary, var(--pg-primary)) !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--e-global-color-primary, var(--pg-primary)) !important;
    padding-left: calc(1.5rem - 3px) !important;
}

.pg-nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-nav-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .partgettr-account-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .partgettr-account-wrapper .woocommerce-MyAccount-navigation,
    .partgettr-account-wrapper nav.woocommerce-MyAccount-navigation {
        position: static;
        max-width: 100%;
    }

    .partgettr-account-wrapper .woocommerce-MyAccount-content,
    .partgettr-account-wrapper div.woocommerce-MyAccount-content {
        padding: 1.5rem !important;
    }

    .pg-vendor-welcome,
    .pg-customer-welcome {
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    .pg-welcome-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .pg-welcome-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .pg-welcome-text h3 {
        font-size: 1.125rem !important;
    }

    .pg-welcome-text p {
        font-size: 0.8125rem !important;
    }

    .pg-vendor-badge {
        width: 24px !important;
        height: 24px !important;
    }

    .pg-vendor-badge svg {
        width: 14px !important;
        height: 14px !important;
    }

    .pg-vendor-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
    }

    .pg-stat {
        padding: 1rem !important;
    }

    .pg-stat:first-child {
        border-right: 1px solid var(--pg-border-light) !important;
        border-bottom: none !important;
    }

    .pg-stat-number {
        font-size: 1.75rem !important;
    }

    .pg-stat-label {
        font-size: 0.8125rem !important;
    }

    .pg-dashboard-link {
        padding: 1rem !important;
        font-size: 0.9375rem !important;
    }

    .pg-dashboard-link h4 {
        font-size: 1rem !important;
    }

    .pg-dashboard-link svg {
        width: 28px !important;
        height: 28px !important;
    }

    .pg-nav-link,
    a.pg-nav-link {
        padding: 0.875rem 1rem !important;
        gap: 0.75rem !important;
        font-size: 0.9375rem !important;
    }

    .pg-nav-link svg {
        width: 18px !important;
        height: 18px !important;
    }
}
