:root {
    --gold-primary: #a88e4a;
    --gold-dark: #8a7239;
    --gold-light: #c9b57a;
    --gold-bg: #faf8f3;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 8px 24px rgba(168, 142, 74, 0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --gold-bg: #1a1f2e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 8px 24px rgba(168, 142, 74, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

/* Navigation */
.navbar {
    padding: 1.25rem 0;
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.75rem;
    color: var(--gold-primary) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--gold-dark) !important;
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--gold-primary) !important;
    background: rgba(168, 142, 74, 0.05);
}

.nav-link.active {
    color: var(--gold-primary) !important;
    background: rgba(168, 142, 74, 0.1);
    font-weight: 600;
}

/* Language Switcher */
.navbar .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 160px;
    background: var(--bg-secondary);
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.navbar .dropdown-item:hover {
    background: rgba(168, 142, 74, 0.1);
    color: var(--gold-primary);
}

.navbar .dropdown-item.active {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.15) 0%, rgba(168, 142, 74, 0.05) 100%);
    color: var(--gold-dark);
    font-weight: 600;
}

.navbar .dropdown-item i.bi-check-lg {
    margin-left: auto;
    color: var(--gold-primary);
    font-size: 1rem;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    border-top-color: var(--text-primary);
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filter-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-title i {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-select,
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(168, 142, 74, 0.1);
    outline: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    border-color: var(--gold-primary);
    background: rgba(168, 142, 74, 0.05);
    color: var(--gold-primary);
}

/* Product Cards */
.product-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-primary);
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.1);
}

.product-card-badge-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-serial {
    font-size: 0.9rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.product-card-serial i {
    font-size: 1.1rem;
}

.product-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-card-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.1) 0%, rgba(168, 142, 74, 0.05) 100%);
    color: var(--gold-dark);
    font-weight: 600;
    border: 1px solid rgba(168, 142, 74, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-card-badge:hover {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.15) 0%, rgba(168, 142, 74, 0.1) 100%);
    transform: translateY(-2px);
}

.product-card-badge i {
    font-size: 0.85rem;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border-color);
}

.btn-view-product {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-view-product::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-view-product:hover::before {
    width: 300px;
    height: 300px;
}

.btn-view-product:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: white;
}

.btn-view-product:active {
    transform: translateY(0);
}

/* Product Show Page */
/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.product-breadcrumb .breadcrumb {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: var(--gold-primary);
}

.product-breadcrumb .breadcrumb-item.active {
    color: var(--text-secondary);
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-secondary);
    padding: 0 0.75rem;
}

.product-show-container {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.product-show-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.product-main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.product-main-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-image-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.product-thumbnail-wrapper {
    margin-top: 1.5rem;
}

.thumbnail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.thumbnail-header i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.thumbnail-header .badge {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: var(--bg-primary);
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item.active {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(168, 142, 74, 0.2), var(--shadow-md);
    transform: translateY(-2px);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Product Header */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.serial-code-badge {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-gold);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.serial-code-badge::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;
}

.serial-code-badge:hover::before {
    left: 100%;
}

.serial-code-text {
    position: relative;
    z-index: 1;
}

.product-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Product Specifications */
.product-specifications {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--gold-primary);
    font-size: 1.75rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-card {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.05) 0%, rgba(168, 142, 74, 0.02) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(168, 142, 74, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    transition: width 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.spec-card:hover::before {
    width: 6px;
}

.spec-card.spec-highlight {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.1) 0%, rgba(168, 142, 74, 0.05) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(168, 142, 74, 0.15);
}

.spec-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.spec-content {
    flex: 1;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.spec-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* QR Code Section */
.qr-code-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.qr-code-container {
    text-align: center;
}

.qr-code-wrapper {
    display: inline-block;
    position: relative;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.qr-code-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.qr-code-image {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.qr-code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.qr-code-wrapper:hover .qr-code-overlay {
    opacity: 1;
}

.btn-qr-action {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-qr-action:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

.qr-code-instruction {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-code-instruction i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

/* Pagination */
.pagination-nav {
    width: 100%;
}

.pagination {
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
    list-style: none;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.pagination .page-item:first-child:last-child .page-link {
    border-radius: 16px;
}

.page-link {
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    min-width: 48px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 142, 74, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.page-link span,
.page-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.page-link:hover {
    background-color: rgba(168, 142, 74, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(168, 142, 74, 0.3);
}

.page-link:hover::before {
    width: 150px;
    height: 150px;
}

.page-link:hover i {
    transform: scale(1.2);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-primary);
    color: white;
    box-shadow: 0 10px 28px rgba(168, 142, 74, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.page-item.active .page-link::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% 100%;
    z-index: -1;
    animation: shimmer-border 3s infinite;
    opacity: 0.6;
}

.pagination .page-item:first-child.active .page-link::after {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.pagination .page-item:last-child.active .page-link::after {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.pagination .page-item:first-child:last-child.active .page-link::after {
    border-radius: 18px;
}

@keyframes shimmer-border {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.page-item.active .page-link::before {
    display: none;
}

.page-item.active .page-link span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-item.disabled .page-link {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    box-shadow: none;
    pointer-events: none;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.page-item.disabled .page-link::before {
    display: none;
}

.page-link-ellipsis {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    min-width: auto !important;
    padding: 0.875rem 0.75rem !important;
    color: var(--text-secondary) !important;
}

.page-link-ellipsis:hover {
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-secondary) !important;
}

.page-link-ellipsis::before {
    display: none !important;
}

/* Pagination Info */
.pagination-info {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.05) 0%, rgba(168, 142, 74, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(168, 142, 74, 0.1);
}

.pagination-info strong {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Custom Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--gold-bg) 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pagination-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.pagination-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 142, 74, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Pagination Icons */
.page-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.page-link:hover i {
    transform: scale(1.2);
}

.page-item.active .page-link i {
    transform: scale(1.1);
}

/* Ellipsis */
.pagination .page-item:has(.page-link:empty) .page-link {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    min-width: auto;
    padding: 0.875rem 0.5rem;
}

.pagination .page-item:has(.page-link:empty) .page-link:hover {
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pagination .page-item:has(.page-link:empty) .page-link::before {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
.footer-modern {
    margin-top: 6rem;
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 142, 74, 0.1) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

.footer-modern .container {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem 2rem;
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(168, 142, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.footer-logo i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.footer-brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer Titles */
.footer-title {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, transparent 100%);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    width: 4px;
    height: 0;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 8px;
}

.footer-links a:hover::before {
    height: 100%;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact span {
    line-height: 1.5;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 142, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 142, 74, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-primary);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(168, 142, 74, 0.4);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid rgba(168, 142, 74, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(168, 142, 74, 0.1);
}

.newsletter-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(168, 142, 74, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 142, 74, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 142, 74, 0.2);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright strong {
    color: var(--gold-light);
    font-weight: 700;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold-light);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-modern .container {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-brand-name {
        font-size: 1.5rem;
    }
    
    .footer-title {
        margin-top: 2rem;
    }
    
    .footer-title:first-of-type {
        margin-top: 0;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .product-card-image-wrapper {
        height: 220px;
    }
    
    .product-main-image-wrapper {
        min-height: 300px;
        padding: 1rem;
    }
    
    .product-main-image {
        max-height: 300px;
    }
    
    .product-show-container {
        padding: 1.5rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .serial-code-badge {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-card {
        flex-direction: column;
        text-align: center;
    }
    
    .spec-icon {
        margin: 0 auto;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .product-breadcrumb .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark Mode Styles */
[data-theme="dark"] .navbar {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241, 245, 249, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-control:focus {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .product-card-image-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .product-card-badge-overlay {
    background: rgba(30, 41, 59, 0.95);
    color: var(--gold-light);
}

[data-theme="dark"] .product-main-image-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .qr-code-wrapper {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .empty-state {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 0.5rem;
    cursor: pointer;
}

.dark-mode-toggle:hover {
    background: rgba(168, 142, 74, 0.1);
    color: var(--gold-primary);
    transform: scale(1.1);
}

[data-theme="dark"] .dark-mode-toggle {
    color: var(--gold-light);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(168, 142, 74, 0.2);
}

/* Additional Dark Mode Styles */
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .main-content {
    background: var(--bg-primary);
}

[data-theme="dark"] .page-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-section {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .product-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .product-show-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .product-info-card {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.1) 0%, rgba(168, 142, 74, 0.05) 100%);
    border-color: rgba(168, 142, 74, 0.2);
}

[data-theme="dark"] .pagination-wrapper {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .pagination-info {
    background: linear-gradient(135deg, rgba(168, 142, 74, 0.1) 0%, rgba(168, 142, 74, 0.05) 100%);
    border-color: rgba(168, 142, 74, 0.2);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(168, 142, 74, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}
