/* ========================================
   HCCL Sales Portal - Unified Stylesheet
   ======================================== */

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

:root {
    --primary-color: #ff8c00;
    --primary-dark: #ff4444;
    --secondary-color: #333;
    --text-light: #666;
    --text-lighter: #ccc;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 10px 25px rgba(255, 140, 0, 0.4);
    --transition: all 0.3s ease;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover .brand-text {
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-lg);
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #dd3333 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons .btn {
    margin: 0.5rem;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon .material-icons {
    font-size: 36px;
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ========================================
   Forms
   ======================================== */
.enquiry-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-control,
.form-select,
.form-textarea {
    border: 1px solid #e1e5e9;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.required::after {
    content: ' *';
    color: #dc3545;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    background-color: var(--bg-light);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 140, 0, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(255, 140, 0, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid #e1e5e9;
}

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

.file-icon {
    margin-right: 0.75rem;
    color: #6c757d;
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.file-remove {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.file-remove:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
    display: flex;
    align-items: center;
}

.card-header .material-icons {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Quotations & Orders
   ======================================== */
.quotation-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    transition: var(--transition);
}

.quotation-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.quotation-id {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 1rem;
}

.order-status-badge.processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status-badge.shipped {
    background-color: #fff3cd;
    color: #856404;
}

.order-status-badge.delivered {
    background-color: #d4edda;
    color: #155724;
}

/* ========================================
   Modals
   ======================================== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirmation-message {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #1a1a1a;
    color: var(--text-lighter);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

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

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

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: var(--white);
}

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

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

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

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .features {
        padding: 60px 0;
    }

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

    .section-title {
        margin-bottom: 2rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .btn-lg {
        width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    footer {
        padding: 40px 0 15px;
    }

    .footer-links li {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 2rem 0;
    }
}

/* ========================================
   Products Page Styles
   ======================================== */
.products-page {
    background-color: var(--bg-light);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.low-stock {
    color: #ffc107;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.product-stock .material-icons {
    font-size: 16px;
}

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

.product-price {
    display: flex;
    flex-direction: column;
}

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

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.product-footer .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.product-footer .btn .material-icons {
    font-size: 18px;
}

/* Products Filters */
.filter-section .input-group-text {
    background-color: var(--white);
    border-right: none;
}

.filter-section .form-control {
    border-left: none;
}

.filter-section .form-control:focus {
    border-left: none;
}

.filter-section .input-group-text .material-icons {
    color: var(--text-light);
}

/* Products Pagination */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: none;
    color: var(--secondary-color);
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    background-color: #e9ecef;
    color: #6c757d;
}

.pagination .page-link .material-icons {
    font-size: 20px;
    vertical-align: middle;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-light .material-icons {
    margin-right: 0.5rem;
}

/* Product Grid Responsive */
@media (max-width: 992px) {
    .product-image {
        height: 220px;
    }

    .price-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .filter-section .row>div {
        margin-bottom: 1rem;
    }

    .filter-section .row>div:last-child {
        margin-bottom: 0;
    }

    .product-image {
        height: 200px;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .product-price {
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   Product Detail Page Styles
   ======================================== */
.product-detail-page {
    background-color: var(--bg-light);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Product Detail Images */
.product-detail-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.main-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-image {
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    border: 2px solid transparent;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Product Detail Info */
.product-detail-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category-badge .material-icons {
    font-size: 18px;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-short-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-detail-meta {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.product-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-detail-meta .meta-item:last-child {
    margin-bottom: 0;
}

/* Pricing */
.product-pricing {
    padding: 1.5rem 0;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price,
.sale-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.request-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.min-quantity-note {
    width: 100%;
}

/* Product Actions */
.product-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Product Highlights */
.product-highlights h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.specifications-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.specifications-list li:last-child {
    border-bottom: none;
}

/* Additional Info */
.product-additional-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.product-additional-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-additional-info .info-item:last-child {
    margin-bottom: 0;
}

.product-additional-info .material-icons {
    color: var(--primary-color);
    font-size: 20px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

.tab-content-wrapper {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    min-height: 200px;
}

.tab-content-wrapper table {
    margin-bottom: 0;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

/* Product Detail Responsive */
@media (max-width: 992px) {
    .product-detail-images {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .product-detail-title {
        font-size: 1.75rem;
    }

    .current-price,
    .sale-price {
        font-size: 2rem;
    }

    .original-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .product-detail-info {
        padding: 1.5rem;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-short-desc {
        font-size: 1rem;
    }

    .current-price,
    .sale-price {
        font-size: 1.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        padding: 0.5rem;
    }

    .product-detail-info {
        padding: 1rem;
    }

    .product-detail-title {
        font-size: 1.25rem;
    }

    .price-display {
        flex-direction: column;
        align-items: flex-start;
    }

    .current-price,
    .sale-price {
        font-size: 1.5rem;
    }

    .product-actions .btn {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .breadcrumb,
    .product-actions,
    .thumbnail-gallery,
    .section-title,
    .product-card {
        display: none !important;
    }

    .product-detail-info,
    .tab-content-wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .main-image-container {
        box-shadow: none !important;
    }
}

/* ========================================
   Modern UI Enhancements (2026)
   ======================================== */

/* Staggered Animation for Feature Cards */
.feature-card,
.product-card,
.quotation-card,
.card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.col-md-4:nth-child(1) .feature-card,
.col-md-4:nth-child(1) .product-card {
    animation-delay: 0.1s;
}

.col-md-4:nth-child(2) .feature-card,
.col-md-4:nth-child(2) .product-card {
    animation-delay: 0.2s;
}

.col-md-4:nth-child(3) .feature-card,
.col-md-4:nth-child(3) .product-card {
    animation-delay: 0.3s;
}

.col-md-4:nth-child(4) .feature-card,
.col-md-4:nth-child(4) .product-card {
    animation-delay: 0.4s;
}

.col-md-4:nth-child(5) .feature-card,
.col-md-4:nth-child(5) .product-card {
    animation-delay: 0.5s;
}

.col-md-4:nth-child(6) .feature-card,
.col-md-4:nth-child(6) .product-card {
    animation-delay: 0.6s;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Enhanced Section Spacing */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Card Spacing Improvements */
.card-body {
    padding: 2rem;
}

.card-header {
    padding: 1.25rem 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
}

/* Row Gap Utility */
.row.g-4 {
    --bs-gutter-y: 2rem;
    --bs-gutter-x: 2rem;
}

.row.g-5 {
    --bs-gutter-y: 3rem;
    --bs-gutter-x: 3rem;
}

/* Modern Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Smooth Focus States */
.form-control:focus,
.form-select:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
    border-color: var(--primary-color);
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* Improved Stat Section */
.stat-item {
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Enhanced Page Headers */
.page-header {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

/* Pulse Animation for CTAs */
@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
}

.cta .btn-primary {
    animation: gentlePulse 2s infinite;
}

/* Container Max Width Improvements */
.container {
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Smooth Page Transitions */
main {
    animation: fadeIn 0.4s ease-out;
}

/* Enhanced Table Styling */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 140, 0, 0.05);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d1fae5;
    border-left-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Better Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
}

.empty-state .material-icons {
    font-size: 4rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}