:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* WhatsApp Button Styling */
.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-success.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-success.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* Enhanced Success Alert Styling */
.alert-success {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.alert-success .alert-heading {
    color: var(--success-color);
    font-weight: 600;
}

.alert-success .btn-whatsapp {
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.alert-success .btn-whatsapp:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Company approval success message */
.alert-success .flex-grow-1 p {
    color: var(--text-dark);
    font-weight: 500;
}

.alert-success .text-muted {
    color: var(--text-light) !important;
}

/* Enhanced Index Page Styling */
.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-section h2 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Key Benefits Icons */
.bg-primary.bg-opacity-10,
.bg-success.bg-opacity-10,
.bg-warning.bg-opacity-10,
.bg-info.bg-opacity-10 {
    transition: all 0.3s ease;
}

.bg-primary.bg-opacity-10:hover,
.bg-success.bg-opacity-10:hover,
.bg-warning.bg-opacity-10:hover,
.bg-info.bg-opacity-10:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Enhanced Footer */
.bg-light .text-muted a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* Social Media Icons */
.bi-facebook:hover,
.bi-twitter:hover,
.bi-instagram:hover,
.bi-linkedin:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Marketplace Features */
.bg-light.rounded-3 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* Enhanced Call to Action */
.card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3) !important;
}

.card.bg-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s ease;
}

/* Disabled WhatsApp button */
.btn-whatsapp:disabled {
    background-color: #6b7280;
    border-color: #6b7280;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-whatsapp:disabled:hover {
    background-color: #6b7280;
    border-color: #6b7280;
    transform: none;
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 0 40px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Product image styles moved to the enhanced section below */

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212,175,55,0.3), rgba(139,115,85,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.company-name {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.views-count {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-left: 1rem;
}

/* Views block vertical (icon over value) */
.views-count.views-compact {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 0.15rem;
}

/* Category badge should wrap to show full name */
.category-badge {
    white-space: normal !important;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.1;
    max-width: 55%;
    text-align: right;
}

/* Tighten spacing between image and text */
.product-card .product-image + .card-body {
    margin-top: 0.4rem;
}

/* Price block: small label above, amount on one line */
.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}
.price-block .price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1;
}
.price-block .price-amount {
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Rating block vertical (icon over value) */
.rating-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 0.15rem;
}
.rating-compact small {
    font-size: 0.78rem;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
    color: var(--text-dark);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Category Image Styles */
.category-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    border-radius: 15px 15px 0 0;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    flex-shrink: 0;
}

/* Enhanced Product Image Styles */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Responsive image handling */
@media (max-width: 768px) {
    .product-image {
        height: clamp(130px, 24vh, 200px);
        min-height: clamp(130px, 24vh, 200px);
    }
    
    .category-image {
        height: 150px;
        min-height: 150px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: clamp(120px, 24vh, 180px);
        min-height: clamp(120px, 24vh, 180px);
    }
    
    .category-image {
        height: 120px;
        min-height: 120px;
    }
    /* Tighter gaps on small screens to help fit two rows */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    .product-card .card-body {
        padding: 0.9rem;
    }
}

/* Ensure consistent card heights */
.row.g-4 > .col-lg-3,
.row.g-4 > .col-md-4,
.row.g-4 > .col-sm-6 {
    display: flex;
}

.row.g-4 > .col-lg-3 > .product-card,
.row.g-4 > .col-md-4 > .product-card,
.row.g-4 > .col-sm-6 > .product-card {
    width: 100%;
}

/* Custom 5/3/2 responsive grid for product listings */
.five-col {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 992px) {
    .five-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 576px) {
    .five-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Product card spacing and alignment */
.product-card {
    margin-bottom: 0;
}

.product-card .btn {
    margin-top: auto;
}

/* Handle missing or small images */
.product-image:empty::before {
    content: '📷';
    font-size: 3rem;
    color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Ensure images don't overflow their containers */
.product-image img,
.category-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Consolidated Product Image Styles - High Specificity */
.product-card .product-image,
div.product-image {
    height: clamp(140px, 22vh, 250px) !important;
    min-height: clamp(140px, 22vh, 250px) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f8f9fa !important;
    border-radius: 15px 15px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force background image properties with maximum specificity */
.product-card .product-image[style*="background-image"],
div.product-image[style*="background-image"] {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Debug: Add border to see image container */
.product-card .product-image {
    border: 2px solid #e9ecef !important;
}

/* Override any potential conflicting styles */
.product-card .product-image {
    background-attachment: scroll !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
}

/* Override Bootstrap background utilities if they exist */
.product-card .product-image.bg-cover,
.product-card .product-image.bg-contain {
    background-size: contain !important;
}

/* Ensure our styles take precedence over any framework styles */
.product-card .product-image {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Maximum specificity override for inline styles */
.product-card .product-image[style*="background-image"] {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Additional specificity for any potential conflicts */
div.product-card div.product-image {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Ultimate override - highest specificity possible */
body .container .row .col-lg-3 .product-card .product-image,
body .container .row .col-md-4 .product-card .product-image,
body .container .row .col-sm-6 .product-card .product-image {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 1em;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background-color: var(--warning-color);
    color: #000;
}

.badge-approved {
    background-color: var(--success-color);
    color: white;
}

.badge-rejected {
    background-color: var(--danger-color);
    color: white;
}

.badge-expired {
    background-color: #6c757d;
    color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .product-card {
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 15px 0 30px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .product-card .card-body {
        padding: 1.25rem;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Animation Classes */
.animate-slideInUp {
    animation: slideInUp 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-fadeInScale {
    animation: fadeInScale 1s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 1s; }
.floating-element:nth-child(3) { animation-delay: 2s; }
.floating-element:nth-child(4) { animation-delay: 3s; }

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Value Proposition Section */
.value-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.value-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

/* Product Showcase Carousel */
.product-showcase {
    background: white;
    padding: 2rem 0;
    overflow: hidden;
}

.product-carousel {
    display: flex;
    animation: scroll-horizontal 30s linear infinite;
    width: calc(300px * 12);
}

.product-carousel:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 300px;
    margin-right: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.carousel-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-content {
    padding: 1.5rem;
}

.carousel-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.carousel-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    animation: counter 2s ease-out;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 8s ease-in-out infinite;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
}

.cta-btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-btn-secondary:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Rating System Styles */
.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stars .bi-star,
.stars .bi-star-fill {
    font-size: 1rem;
    color: #dee2e6;
}

.stars .bi-star-fill {
    color: var(--warning-color);
}

.rating-select {
    font-size: 1rem;
}

.rating-select option {
    padding: 8px;
}

.rating-select option[value="5"] {
    color: #28a745;
}

.rating-select option[value="4"] {
    color: #17a2b8;
}

.rating-select option[value="3"] {
    color: #ffc107;
}

.rating-select option[value="2"] {
    color: #fd7e14;
}

.rating-select option[value="1"] {
    color: #dc3545;
}

.review-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.review-form .form-control:invalid,
.review-form .form-select:invalid {
    border-color: #dc3545;
}

.review-form .form-control:valid,
.review-form .form-select:valid {
    border-color: #28a745;
}

.review-form .form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.review-form .form-control.is-valid,
.review-form .form-select.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.review-form .form-control.is-invalid,
.review-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.review-item {
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
}

.review-item .stars {
    font-size: 0.9rem;
}

.review-item .stars .bi-star,
.review-item .stars .bi-star-fill {
    font-size: 0.9rem;
}

/* Company Dashboard Card Styles */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid #17a2b8 !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

/* Company Dashboard Specific Styles */
.company-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.company-sidebar .nav-link:hover,
.company-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.company-content {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Similar Products Section Styles */
.similar-product-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.similar-product-card .card-img-top {
    transition: transform 0.3s ease;
}

.similar-product-card:hover .card-img-top {
    transform: scale(1.05);
}

.similar-product-card .card-body {
    padding: 1rem;
}

.similar-product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.similar-product-card .stars {
    font-size: 0.8rem;
}

.similar-product-card .price-tag {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.similar-product-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.similar-product-card small {
    font-size: 0.8rem;
}

/* Responsive adjustments for similar products */
@media (max-width: 768px) {
    .similar-product-card .card-title {
        font-size: 0.9rem;
    }
    
    .similar-product-card .price-tag {
        font-size: 1rem;
    }
    
    .similar-product-card .card-img-top {
        height: 150px !important;
    }
}

@media (max-width: 576px) {
    .similar-product-card .card-img-top {
        height: 120px !important;
    }
    
    .similar-product-card .card-body {
        padding: 0.75rem;
    }
}
