@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Aussie Trade Hub Marketplace Styles */

:root {
    --primary-green: #28a745;
    --dark-green: #1e7e34;
    --light-green: #d4edda;
    --success-green: #155724;
}

/* Custom text selection highlight color */
::selection {
    background-color: #28a745; /* Green background */
    color: white; /* White text for contrast */
}

::-moz-selection {
    background-color: #28a745; /* Green background for Firefox */
    color: white; /* White text for contrast */
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.btn,
.dropdown-item {
    white-space: nowrap;
}

#userGreeting {
    font-size: 13px;
}

#userFeedbackPoints {
    letter-spacing: 0.28em;
    margin-right: -0.28em;
    display: inline-block;
}

/* Hide scrollbar while maintaining scroll functionality */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

/* Also hide scrollbar for html element */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Navbar Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e9ecef !important;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Search Bar */
.input-group-lg .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.input-group-lg .btn {
    border-radius: 0 50px 50px 0;
    border-left: none;
}

.search-bar-container {
    border-radius: 50px !important;
    overflow: visible;
}

.search-bar-container .fa-search {
    display: none !important;
}

.search-bar-container .search-input {
    border-radius: 50px 0 0 50px !important;
}

.search-bar-container #searchBtn,
.search-bar-container .btn {
    border-radius: 0 50px 50px 0 !important;
}

#searchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1100;
    border: 1px solid #ddd;
    border-top: none;
    display: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    max-height: 360px;
    overflow-y: auto;
    border-radius: 0 0 22px 22px;
}

#searchSuggestions .suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
}

#searchSuggestions .suggestion-title {
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

#searchSuggestions .suggestion-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

#searchSuggestions .suggestion-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchSuggestions .suggestion-category {
    font-weight: 700;
    color: #0b3d73;
}

#searchSuggestions .no-results {
    padding: 12px 14px;
    color: #6c757d;
}

/* Product Cards */
.card {
    transition: border-color 0.2s ease;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.card-image-container {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.watchlist-heart-btn i {
    font-size: 16px;
    color: rgba(0,0,0,0.55);
    transition: color 120ms ease;
}

.watchlist-heart-btn.active i {
    color: #e53238;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fit-contain {
    object-fit: contain !important;
    background-color: #f8f9fa;
    padding: 12px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.card-text .text-success {
    font-size: 1.2rem;
}

.aussietradehub-rich-toolbar {
    padding: 10px 10px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.aussietradehub-rich-toolbar .btn {
    border-radius: 10px;
}

.aussietradehub-rich-toolbar .btn i {
    font-size: 0.95rem;
    width: 1.05rem;
    text-align: center;
}

.aussietradehub-rich-toolbar .btn.active {
    background: rgba(0,83,160,0.10);
    border-color: rgba(0,83,160,0.35);
    color: #0b3d73;
}

.aussietradehub-rich-toolbar .form-select {
    border-radius: 12px;
}

.aussietradehub-rich-editor.aussietradehub-rich-drop {
    outline: 2px dashed rgba(0,83,160,0.55);
    outline-offset: 4px;
    background: rgba(0,83,160,0.04);
}

.aussietradehub-rich-editor img,
#sellerDescription img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.aussietradehub-rich-editor table,
#sellerDescription table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.aussietradehub-rich-editor th,
.aussietradehub-rich-editor td,
#sellerDescription th,
#sellerDescription td {
    border: 1px solid rgba(0,0,0,0.12);
    padding: 8px 10px;
    vertical-align: top;
}

.aussietradehub-rich-editor th,
#sellerDescription th {
    background: rgba(0,83,160,0.06);
    font-weight: 800;
}

.aussietradehub-emoji-panel {
    position: absolute;
    z-index: 9999;
    width: 260px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.aussietradehub-emoji-panel .btn {
    padding: 6px 0;
    border-radius: 12px;
    line-height: 1;
}

.aussietradehub-popover-panel {
    position: absolute;
    z-index: 9999;
    width: 320px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
    backdrop-filter: blur(10px);
}

/* Sell Section */
#sell {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

/* Footer */
footer {
    background-color: #212529 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Modal Styles */
.modal-header {
    background-color: var(--primary-green);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.pt-modal-header {
    background-color: #fff;
    color: #111;
    border-bottom: 1px solid #e5e5e5;
}

.pt-modal-header .btn-close {
    filter: none;
}

#myStoreModal .modal-content,
#storeIntroModal .modal-content {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

#myStoreModal .modal-body,
#storeIntroModal .modal-body {
    background: #f8f9fa;
}

#myStoreModal .card,
#storeIntroModal .card {
    background: #fff;
}

.storefront-active {
    --store-primary: #0053a0;
    --store-accent: #28a745;
}

.storefront-active .store-hero {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.08);
}

.storefront-template-bold .store-hero {
    background: linear-gradient(135deg, var(--store-primary), rgba(0,0,0,0.15));
}

.storefront-template-bold .store-hero #browseTitle,
.storefront-template-bold .store-hero #resultsCount {
    color: #fff !important;
}

.storefront-template-bold .store-hero #browseSubtitle {
    color: rgba(255,255,255,0.85) !important;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn.btn-ebay-primary,
.btn-ebay-primary {
    background-color: #0053a0 !important;
    border-color: #0053a0 !important;
    color: #fff !important;
    font-weight: 700;
}

.btn.btn-ebay-primary:hover,
.btn.btn-ebay-primary:focus,
.btn-ebay-primary:hover,
.btn-ebay-primary:focus {
    background-color: #00498d !important;
    border-color: #00498d !important;
    color: #fff !important;
}

.btn.btn-ebay-primary:focus-visible,
.btn-ebay-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(0, 83, 160, 0.25) !important;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Override listing card image sizes for larger images */
.listing-card-list .d-flex {
    min-height: 80px !important;
    flex-direction: row !important;
}

.listing-card-list .flex-shrink-0 {
    width: 800px !important;
    height: 80px !important;
    max-width: 800px !important;
    min-width: 800px !important;
    flex-shrink: 0 !important;
}

.listing-card-list .flex-grow-1 {
    flex-grow: 1 !important;
}

.listing-card-list .flex-shrink-0 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .listing-card-list .flex-shrink-0 {
        width: 600px !important;
        height: 80px !important;
        max-width: 600px !important;
        min-width: 600px !important;
    }
}

@media (max-width: 991px) {
    .listing-card-list .flex-shrink-0 {
        width: 700px !important;
        height: 80px !important;
        max-width: 700px !important;
        min-width: 700px !important;
    }
}

/* Alert Messages */
.alert-custom {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* User Profile Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Product Listing Status Badge */
.badge-new {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 50px;
}

/* Search Results */
.search-results {
    display: none;
}

.search-results.show {
    display: block;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* Hero Section Override */
.hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 3rem 0;
}

/* Category Cards */
.category-card {
    cursor: pointer;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar {
    max-height: 70vh;
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.category-nav .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.category-nav .nav-link.active {
    background-color: #28a745;
    color: white;
}

.mobile-categories {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* New Product List Design */
.product-list-item {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    max-width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    min-height: 220px;
    cursor: pointer;
}

.product-image-container {
    position: relative;
    width: 200px;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.favorite-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.type-badge {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.auction {
    background: rgba(255,193,7,0.9);
    color: white;
}

.type-badge.both {
    background: rgba(23,162,184,0.9);
    color: white;
}

.type-badge.normal {
    background: rgba(40,167,69,0.9);
    color: white;
}

.product-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-title-section {
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.product-condition {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.product-condition.excellent {
    background-color: #d4edda;
    color: #155724;
}

.product-condition.good {
    background-color: #cce5ff;
    color: #004085;
}

.product-condition.fair {
    background-color: #fff3cd;
    color: #856404;
}

.product-condition.poor {
    background-color: #f8d7da;
    color: #721c24;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.product-price-detail {
    display: block;
    margin-top: 0.25rem;
}

.price-stack {
    display: block !important;
    width: 100%;
}

.auction-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    white-space: nowrap;
}

.buy-now-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
}

.price-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: 0.5rem;
    font-style: italic;
}

.shipping-info {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 600;
}

.price-stack {
    display: block !important;
    margin-bottom: 2px;
    width: 100%;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item.postage {
    color: #28a745;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-info {
    display: flex;
    align-items: center;
}

.seller-name {
    font-size: 0.85rem;
    color: #6c757d;
}

.view-details-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Sidebar Navigation Styles */
.sidebar-nav {
    overflow-y: visible;
    max-height: none;
    position: static;
}

.sidebar-nav .nav-link {
    padding: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.sidebar-nav .nav-link.active {
    background-color: #28a745;
    color: white;
}

.sidebar-nav .text-muted {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav .mb-3 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    .product-list-item {
        flex-direction: column;
        min-height: 320px;
    }
    
    .product-image-container {
        width: 100%;
        height: 270px;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-price {
        margin-top: 0.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .product-list-item {
        flex-direction: column;
        min-height: 300px;
    }
    
    .product-image-container {
        width: 100%;
        height: 240px;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-price {
        margin-top: 0.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

.feedback-icon {
    margin-left: 4px;
    font-size: 0.95em;
    vertical-align: -0.05em;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.10));
}

.feedback-yellow { color: #f5af02; }
.feedback-blue { color: #0053a0; }
.feedback-turquoise { color: #16a3b7; }
.feedback-purple { color: #7c3aed; }
.feedback-red { color: #e53238; }
.feedback-green { color: #16a34a; }
.feedback-silver { color: #9ca3af; }

.feedback-shooting {
    margin-left: 2px;
    font-size: 0.9em;
    opacity: 0.95;
    transform: translateY(1px);
}

.aussietradehub-confirm-modal .modal-content {
    border-radius: 16px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.aussietradehub-confirm-modal .modal-header {
    border-bottom: 0;
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: #fff;
    padding: 14px 18px;
}

.aussietradehub-confirm-modal .aussietradehub-confirm-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aussietradehub-confirm-modal .aussietradehub-mark {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.95);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 2px;
}

.aussietradehub-confirm-modal .modal-body {
    padding: 18px 18px 10px 18px;
}

.aussietradehub-confirm-modal .aussietradehub-confirm-message {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.35;
}

.aussietradehub-confirm-modal .aussietradehub-confirm-warning {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.20);
    border-radius: 12px;
}

.aussietradehub-confirm-modal .aussietradehub-confirm-warning .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #dc3545;
    margin-top: 4px;
    flex: 0 0 auto;
}

.aussietradehub-confirm-modal .modal-footer {
    border-top: 0;
    padding: 10px 18px 18px 18px;
    gap: 10px;
}

.aussietradehub-confirm-modal .btn-aussietradehub-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.aussietradehub-confirm-modal .btn-aussietradehub-danger:focus {
    background-color: #c82333;
    border-color: #bd2130;
}

.aussietradehub-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 83, 160, 0.1);
    border: 1px solid rgba(0, 83, 160, 0.3);
    border-radius: 12px;
    font-size: 0.875rem;
    color: #0b3d73;
    margin: 2px;
}

.aussietradehub-tag button {
    background: none;
    border: none;
    color: #0b3d73;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
}

.aussietradehub-tag button:hover {
    opacity: 1;
}

.pt-eye-wrap button[data-pt-eye-btn="1"] {
    background: #fff !important;
    color: #1f2937 !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

.pt-eye-wrap button[data-pt-eye-btn="1"]:focus {
    background: var(--light-green) !important;
    color: var(--success-green) !important;
    border-color: var(--primary-green) !important;
}

:root {
    --ebay-blue: #0053a0;
    --ebay-red: #e53238;
    --ebay-yellow: #f5af02;
    --ebay-green: #86b817;
}

body {
    background-color: #f7f7f7;
    color: #333;
}

/* Top Bar */
.top-bar {
    background-color: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-size: 12px !important;
    padding: 5px 0 !important;
}
.top-bar a {
    color: #333 !important;
    text-decoration: none !important;
    margin-right: 15px !important;
}
.top-bar #userGreeting a {
    margin-right: 0 !important;
}
.top-bar .btn {
    color: #fff !important;
}
.top-bar .top-nav-btn {
    color: #333 !important;
}
.top-bar a .fas.fa-bell,
.top-bar a .fas.fa-shopping-cart {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}
.top-nav-btn {
    border: 1px solid gray !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}
#userGreeting:focus,
#userGreeting:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

/* Header */
.main-header {
    background-color: #fff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.ebay-logo {
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: -1.5px;
    position: relative;
    padding: 6px 0;
    border-radius: 10px;
    transition: none;
    color: #111;
}

.ebay-logo:hover,
.ebay-logo:active {
    transform: none !important;
    filter: none !important;
}

.ebay-logo::after,
.ebay-logo:hover::after,
.ebay-logo:active::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
    transform: none !important;
    background: none !important;
}
.website-logo {
    height: 90px !important;
    width: auto !important;
    max-width: 100%;
    display: block;
}
@media (max-width: 768px) {
    .main-header .row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .ebay-logo {
        margin-bottom: 5px;
    }
    .website-logo {
        height: 74px !important;
    }
    .search-bar-container {
        flex-direction: column !important;
        border: none !important;
        gap: 10px !important;
    }
    .search-input {
        border: 1px solid #333 !important;
        border-radius: 5px !important;
    }
    #searchBtn {
        width: 100% !important;
        border-radius: 5px !important;
    }
}
.ebay-logo:focus-visible {
    outline: 2px solid rgba(0,83,160,0.55);
    outline-offset: 3px;
}
@keyframes logoRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.logo-p { color: #111; position: relative; z-index: 2; }
.logo-i { color: #111; position: relative; z-index: 2; }
.logo-n { color: #111; position: relative; z-index: 2; }
.logo-e { color: #111; position: relative; z-index: 2; }
.logo-tree-icon {
    font-size: 3.8rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.3;
    filter: grayscale(1) brightness(0.6) contrast(1.2);
    pointer-events: none;
}

.search-bar-container {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #333 !important;
    padding: 0 !important;
    width: 100% !important;
}
.search-input {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
}
#searchBtn {
    background-color: var(--ebay-blue) !important;
    color: white !important;
    border: none !important;
    padding: 10px 40px !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.category-select {
    border-left: 1px solid #e5e5e5 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding-left: 15px !important;
    padding-right: 25px !important;
    margin-right: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    width: auto !important;
    max-width: 180px;
    background-position: right 8px center !important;
}

#searchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    border: 1px solid #ddd;
    border-radius: 0 0 15px 15px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-actions a {
    color: #333;
    font-size: 20px;
    margin-left: 20px;
    position: relative;
}

/* Category Nav */
.category-nav {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    white-space: nowrap;
}
.category-nav a {
    color: #666;
    text-decoration: none;
    margin-right: 25px;
    font-size: 14px;
}

/* Hero Banner */
.hero-section {
    margin: 0;
}
.hero-card {
    background: linear-gradient(135deg, #febd69 0%, #ff9900 100%);
    border-radius: 15px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.hero-card h1 { font-weight: 800; font-size: 3rem; margin-bottom: 10px; }
.hero-card p { font-size: 1.2rem; margin-bottom: 20px; }
.hero-carousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 0;
}
#aussietradehubHeroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}
#aussietradehubHeroCarousel .carousel-item-next,
#aussietradehubHeroCarousel .carousel-item-prev {
    transform: translateX(100%);
}
#aussietradehubHeroCarousel .carousel-item-next.carousel-item-start,
#aussietradehubHeroCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}
#aussietradehubHeroCarousel .active.carousel-item-start,
#aussietradehubHeroCarousel .active.carousel-item-end {
    transform: translateX(-100%);
}
.hero-slide {
    height: 340px;
    position: relative;
    background-size: cover;
    background-position: center;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.10) 100%);
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 380px at 20% 35%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(700px 320px at 80% 75%, rgba(0, 83, 160, 0.20), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
}
.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 2;
}
.hero-caption-inner {
    width: 100%;
    max-width: none;
    color: #fff;
    padding: 28px;
}

.hero-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}
.hero-featured-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.92);
}
.hero-featured-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
}
.hero-featured-item strong {
    font-weight: 900;
}
.hero-featured-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.80);
}
.hero-featured-pill {
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
}
.hero-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.hero-title {
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.05;
    margin: 14px 0 10px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 16px;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-weight: 700;
    font-size: 13px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.hero-actions .btn {
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 18px;
}
.hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.75);
}
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    margin: 0 5px;
    opacity: 0.55;
}
.carousel-indicators .active {
    opacity: 1;
}
.carousel-control-prev,
.carousel-control-next {
    width: 54px;
    opacity: 1 !important;
    z-index: 20 !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.38);
    border-radius: 999px;
    background-size: 60% 60%;
    width: 42px;
    height: 42px;
    opacity: 1 !important;
}
@media (max-width: 576px) {
    .hero-slide { height: 380px; }
    .hero-title { font-size: 2.25rem; }
    .hero-caption-inner { padding: 20px; }
}

/* Product Cards */
.featured-listings h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

/* Sidebar eBay Style */
.sidebar-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ebay-blue);
    color: var(--ebay-blue);
}
.sidebar-link {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 8px;
}
.sidebar-heading {
    display: block;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    margin-top: 50px;
    font-size: 13px;
}
footer h5 { font-weight: 700; font-size: 14px; margin-bottom: 15px; }
footer ul li { margin-bottom: 8px; }
footer a { color: #666; text-decoration: none; }
.win-banner {
    border: 1px solid #c9e6cd;
    background: #e9f7ee;
    color: #0f5132;
    border-radius: 10px;
    padding: 10px 14px;
}
.win-banner .actions a {
    margin-right: 8px;
}

.selling-template {
    font-size: 0.95rem;
}

.selling-template header.main-header .col-lg-10,
.selling-template header.main-header .search-bar-container {
    display: none !important;
}

.selling-template .display-5 {
    font-size: 2.1rem;
}

.selling-template .lead {
    font-size: 1rem;
}

.selling-template .section-title {
    font-size: 1.15rem;
}

.selling-template .form-label,
.selling-template .form-check-label {
    font-size: 0.9rem;
}

.selling-template .form-control,
.selling-template .form-select {
    font-size: 0.95rem;
}
