/* StandardStore.co.uk Professional Design System */

:root {
    /* Professional Color Palette */
    --primary-blue: #0B1426;
    --secondary-blue: #1A365D;
    --accent-blue: #2563EB;
    --british-red: #C53030;
    --gold-accent: #D69E2E;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important; /* Prevent smooth scroll from interfering */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Product Page Specific Styles */
.product-header-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.product-badge .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem; /* Add bottom margin for mobile stacking */
}

.product-badge .badge i {
    width: 16px;
    height: 16px;
}

/* Force Bootstrap badge colors */
.badge.bg-primary {
    background-color: var(--accent-blue) !important;
    color: var(--white) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
    color: var(--white) !important;
}

/* Mobile badge spacing improvements */
@media (max-width: 768px) {
    .product-badge {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-badge .badge {
        margin-bottom: 0;
        margin-right: 0;
    }
}

.product-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.product-summary .lead {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.technical-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0;
}

.info-item span {
    color: var(--gray-800);
    font-weight: 500;
}

.quality-indicators {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.indicator-item i {
    width: 20px;
    height: 20px;
}

.indicator-item span {
    font-weight: 500;
    color: var(--gray-700);
}

/* Enhanced Purchase Card Styles */
.purchase-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 2rem;
}

.purchase-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.purchase-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.purchase-icon i {
    width: 24px;
    height: 24px;
}

.purchase-header h4 {
    color: var(--white);
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.purchase-body {
    padding: 2rem;
}

.price-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.price-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.purchase-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.purchase-description p {
    margin: 0;
}

.purchase-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
}

.purchase-button:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trust-section {
    display: grid;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.trust-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.trust-icon.success {
    color: var(--success);
}

.trust-icon.primary {
    color: var(--accent-blue);
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Specification Details Styling */
.specification-details h5 {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.specification-details h5 i {
    width: 16px;
    height: 16px;
}

.spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
}

.spec-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1rem;
}

.spec-list li:last-child {
    margin-bottom: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .product-header-section {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .purchase-card {
        position: static !important;
    }
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.text-muted {
    color: var(--gray-600) !important;
}

.text-primary {
    color: var(--accent-blue) !important;
}

/* Professional Navigation */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    min-height: 80px;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue) !important;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--accent-blue) !important;
    text-decoration: none;
}

.navbar-toggler {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-blue) !important;
    background-color: var(--gray-50);
    text-decoration: none;
}

.navbar-nav .nav-link.active {
    color: var(--accent-blue) !important;
}

/* Categories Dropdown Styles */
.categories-dropdown {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.categories-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.categories-dropdown .dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--accent-blue);
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Categories dropdown items need space-between for badge alignment */
.categories-dropdown .dropdown-item {
    justify-content: space-between;
}

/* Search dropdown items should be left-aligned */
#searchDropdown + .dropdown-menu .dropdown-item {
    justify-content: flex-start;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--accent-blue);
}

/* Search form in navbar */
.navbar .input-group {
    min-width: 280px;
}

.navbar .form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius) !important;
}

.navbar .form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive navbar adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar .input-group {
        margin-top: 1rem;
        min-width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        margin: 0.25rem 0;
    }
    
    /* Center search button in mobile menu */
    .navbar-collapse .btn-primary {
        margin: 1rem auto 0 auto;
        display: block;
        width: fit-content;
    }
}

/* Professional Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    transform: rotate(12deg);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.search-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
}

/* Professional Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1D4ED8 100%);
    border-color: var(--accent-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, var(--accent-blue) 100%);
    border-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    color: var(--gray-800);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Professional Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.card-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--primary-blue);
}

.card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-card .card-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card .card-title a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

.product-card .card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--british-red);
    margin-bottom: 1rem;
}

/* Professional Feature Sections */
.feature-icon {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
    color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 50%;
    padding: 16px;
    margin-bottom: 1.5rem;
}

.feature-box {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-lg);
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.feature-box h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Professional Product Pages */
.product-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.product-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-meta .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1D4ED8 100%);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--british-red);
    margin-bottom: 2rem;
}

.product-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Professional Layout Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-showcase {
    margin-top: 3rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.5rem;
    height: 100%;
    position: relative;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon i {
    color: var(--white);
    width: 24px;
    height: 24px;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-stats {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Mobile category stats centering */
@media (max-width: 767.98px) {
    .category-stats {
        justify-content: center;
    }
}

/* Mobile breadcrumb fix */
@media (max-width: 767.98px) {
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .breadcrumb-item {
        word-break: break-word;
        line-height: 1.4;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }
}

/* Mobile product layout adjustments */
@media (max-width: 991.98px) {
    .purchase-card {
        position: static !important;
        margin-bottom: 2rem;
    }
}

.product-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.category-stats .label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.category-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-blue);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.category-arrow i {
    width: 16px;
    height: 16px;
}

.categories-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

/* Browse Categories Section (Search Page) */
.category-browse-section {
    padding: 3rem 0;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
}

.browse-categories-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.browse-category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.browse-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.category-browse-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.25rem;
    height: 100%;
    position: relative;
}

.category-browse-link:hover {
    text-decoration: none;
    color: inherit;
}

.browse-category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.browse-category-card:hover .browse-category-icon {
    transform: scale(1.1);
}

.browse-category-icon i {
    color: var(--white);
    width: 20px;
    height: 20px;
}

.browse-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.browse-category-stats {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.standards-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.standards-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.browse-category-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent-blue);
}

.browse-category-card:hover .browse-category-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.browse-category-arrow i {
    width: 14px;
    height: 14px;
}

.all-categories-prompt {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

/* Search Dropdown Styling */
.dropdown-item .fw-semibold {
    color: var(--primary-blue);
}

.dropdown-item small.text-muted {
    font-size: 0.75rem;
    line-height: 1.2;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Professional Search Interface */
.search-form {
    position: relative;
}

.search-input {
    font-size: 1.125rem;
    padding: 1rem 4rem 1rem 1.5rem; /* Added right padding for search button */
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-lg);
    background-color: var(--white);
    transition: all 0.3s ease;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.search-btn:hover {
    transform: translateY(-50%); /* Prevent button from moving on hover */
}

/* Fix search input placeholder visibility */
.search-input::placeholder,
.form-control::placeholder {
    color: var(--gray-500) !important;
    opacity: 1 !important;
}

/* Fix card button sizing and spacing */
.card-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    min-width: 100px;
    text-align: center;
}

.card-footer .btn:last-child {
    margin-right: 0;
}

.card-footer {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Fix industry label truncation */
.product-meta .badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
}

/* Responsive Search Layout */
.search-page .search-form {
    width: 100%;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    /* Navbar mobile fixes */
    .navbar-brand {
        font-size: 1.25rem; /* Smaller logo on mobile */
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Hero section mobile fixes */
    .hero .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hero .btn-lg {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 0.75rem;
    }
    
    .hero .btn-lg:last-child {
        margin-bottom: 0;
    }
    
    /* Search box mobile fixes */
    .search-widget {
        padding: 1.5rem 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 3.5rem 0.875rem 1rem;
    }
    
    .search-btn {
        right: 6px;
        width: 2.5rem;
        height: 2.5rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Category cards mobile fixes */
    .category-link {
        text-align: center !important;
    }
    
    .category-icon {
        margin: 0 auto 1rem auto !important;
    }
    
    .category-link h4 {
        text-align: center !important;
    }
    
    .category-link .badge,
    .category-link .text-muted {
        text-align: center !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .search-header .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .form-control-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    .search-widget .row .col-md-6 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .search-widget .row .col-md-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .search-widget .row .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.75rem;
    }
}

/* Professional Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 2rem 1rem;
    }
    
    .search-widget {
        padding: 1.5rem;
    }
}
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.purchase-card {
    border: 2px solid var(--primary-color);
    position: sticky;
    top: 2rem;
}

.purchase-card .card-header {
    background: var(--primary-color) !important;
}

.trust-indicators {
    font-size: 0.875rem;
    color: var(--text-light);
}

.trust-indicators i {
    width: 16px;
    height: 16px;
}

/* Category Pages */
.category-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 3rem 0;
    margin: -1rem -15px 2rem -15px;
    border-radius: 0 0 24px 24px;
}

.category-stats .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Search Results */
.search-results .card {
    height: 100%;
}

.no-results {
    background: var(--bg-light);
    border-radius: 16px;
    margin: 2rem 0;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: 600;
    color: var(--text-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

footer .social-links a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero .display-4 {
        font-size: 2rem;
    }
    
    .purchase-card {
        position: static;
        margin-top: 2rem;
    }
    
    .category-header {
        text-align: center;
    }
    
    .feature-box {
        margin-bottom: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.input-group .btn {
    z-index: 3;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.feather-sm {
    width: 14px;
    height: 14px;
}

/* Print Styles */
@media print {
    .navbar,
    .purchase-card,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --bg-light: #1f2937;
        --border-color: #374151;
    }
    
    body {
        background-color: #111827;
        color: var(--text-dark);
    }
    
    .card {
        background-color: #1f2937;
        border-color: var(--border-color);
    }
    
    .bg-light {
        background-color: var(--bg-light) !important;
    }
}
