/**
 * 전자부품 쇼핑몰 스타일시트
 * Apple 스타일 미니멀리즘 디자인
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --primary-light: rgba(0, 113, 227, 0.08);
    --brand-green: #2e7d32;
    --brand-green-light: rgba(46, 125, 50, 0.1);
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-color: #ffffff;
    --bg-light: #f5f5f7;
    --border-color: #d2d2d7;
    --success-color: #34c759;
    --error-color: #ff3b30;
    --warning-color: #ff9500;
    --spacing-unit: 8px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }

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

a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(210, 210, 215, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    font-size: 17px;
}

.user-menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page-title {
    font-size: 48px;
    margin-bottom: 40px;
    text-align: center;
}

/* Hero Section */
.home-page .main-content {
    padding: 0;
}

.hero-section {
    position: relative;
    padding: 72px 0 80px;
    overflow: hidden;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_pcb_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 29, 31, 0.72) 0%, rgba(29, 29, 31, 0.88) 100%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 85%);
    z-index: 2;
}

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

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00d285;
    background: rgba(0, 210, 133, 0.12);
    border: 1px solid rgba(0, 210, 133, 0.3);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: #e3e3e7;
    max-width: 580px;
    margin: 0 0 36px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-layout--centered {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-layout--centered .hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-layout--centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-layout--centered .hero-actions {
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 320px;
}

.hero-visual-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(210, 210, 215, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.hero-visual-card .material-icons {
    font-size: 32px;
    color: var(--primary-color);
}

.hero-visual-card--main {
    top: 10%;
    left: 8%;
    width: 160px;
    height: 140px;
}

.hero-visual-card--secondary {
    top: 5%;
    right: 5%;
    width: 150px;
    height: 130px;
}

.hero-visual-card--accent {
    bottom: 12%;
    left: 20%;
    width: 145px;
    height: 125px;
}

.hero-visual-card--small {
    bottom: 18%;
    right: 12%;
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: var(--radius-full);
}

.hero-visual-card--small .material-icons {
    font-size: 28px;
}

.hero-visual-card--main { animation: hero-float 6s ease-in-out infinite; }
.hero-visual-card--secondary { animation: hero-float 6s ease-in-out 1.5s infinite; }
.hero-visual-card--accent { animation: hero-float 6s ease-in-out 3s infinite; }
.hero-visual-card--small { animation: hero-float 6s ease-in-out 4.5s infinite; }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    flex-shrink: 0;
    font-size: 26px;
    color: #00d285;
    background: rgba(0, 210, 133, 0.12);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.feature-desc {
    font-size: 13px;
    color: #b0b0b8;
    line-height: 1.5;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.hero-actions .btn-outline:hover {
    background: #ffffff;
    color: var(--text-color);
    border-color: #ffffff;
}

.hero-actions .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background-color: var(--bg-light);
    opacity: 1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 19px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 17px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 17px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Login Page */
.login-page {
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 32px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: var(--error-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

/* Categories */
.categories-section {
    padding: 60px 0;
}

.home-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 16px;
}

.categories-section {
    position: relative;
    background-image: url('../images/category_grid_bg.png');
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
    opacity: 1;
}

.category-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    transition: background 0.25s;
}

.category-card:hover .category-icon-wrap {
    background: rgba(0, 113, 227, 0.15);
}

.category-icon {
    font-size: 32px;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

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

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.category-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.25s, transform 0.25s, color 0.25s;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

/* Products */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(210, 210, 215, 0.5);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-product-card .product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-product-card .product-card-link:hover {
    opacity: 1;
}

.home-products-grid {
    gap: 24px;
}

.home-product-card .product-image {
    position: relative;
    height: 220px;
}

.product-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 113, 227, 0.12);
}

.product-price-row {
    padding-top: 12px;
    border-top: 1px solid rgba(210, 210, 215, 0.5);
    margin-top: 4px;
}

.product-price-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--text-secondary);
}

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

/* CTA Section */
.cta-section {
    padding: 0 0 80px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.cta-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

.cta-section .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-sku {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-price {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-color);
}

/* Products Page - List View (B2B Style) */
.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.filter-sidebar {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-sidebar h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
    border-radius: 6px;
    transition: background-color 0.2s;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-color);
    color: white;
}

.products-header {
    margin-bottom: 24px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    font-size: 17px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.products-table thead {
    background: var(--bg-light);
}

.products-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.products-table tbody tr:hover {
    background: var(--bg-light);
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.product-link {
    color: var(--text-color);
}

.quantity-input {
    padding: 8px;
    width: 80px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
}

.price-cell {
    font-weight: 600;
    font-size: 17px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.product-images {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.main-image {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

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

.product-info h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.product-sku,
.product-part,
.product-category {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-section {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.price-label {
    font-size: 17px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.price {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
}

.product-specs {
    margin: 32px 0;
}

.product-specs h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.spec-table th {
    font-weight: 600;
    color: var(--text-secondary);
    width: 150px;
}

.order-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.quantity-selector input {
    width: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 17px;
}

.stock-info {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Cart */
#cartContainer {
    margin: 40px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-table th,
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background: var(--bg-light);
    font-weight: 600;
    text-align: left;
}

.cart-total {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: right;
}

.cart-total-amount {
    font-size: 32px;
    font-weight: 600;
    margin-top: 8px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Orders */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.orders-table th,
.orders-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Bulk Order */
.bulk-order-section {
    max-width: 800px;
    margin: 0 auto;
}

.info-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.info-box h3 {
    margin-bottom: 16px;
}

.info-box pre {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    overflow-x: auto;
}

.info-box ul {
    margin-left: 24px;
    margin-top: 16px;
}

.info-box li {
    margin-bottom: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
}

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

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-secondary);
}

.home-page .footer {
    margin-top: 0;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .products-table {
        font-size: 14px;
    }
    
    .products-table th,
    .products-table td {
        padding: 8px;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }

    .hero-section {
        padding: 32px 0 40px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 28px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-visual {
        height: 240px;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-visual-card--main {
        top: 8%;
        left: 0;
        width: 130px;
        height: 115px;
    }

    .hero-visual-card--secondary {
        top: 0;
        right: 0;
        width: 120px;
        height: 105px;
    }

    .hero-visual-card--accent {
        bottom: 8%;
        left: 10%;
        width: 115px;
        height: 100px;
    }

    .hero-visual-card--small {
        bottom: 15%;
        right: 8%;
        width: 60px;
        height: 60px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 16px;
    }

    .feature-item {
        padding: 16px;
    }

    .home-section {
        padding: 56px 0;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .cta-desc {
        margin: 0 auto;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

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

/* --- Registration Flow & Email Query Modal Changes --- */
.input-check-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.input-check-group input {
    flex: 1;
}
.input-check-group .btn-check-username {
    padding: 0 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.input-check-group .btn-check-username:hover {
    background-color: var(--border-color);
}
.input-check-group .btn-check-username:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.username-check-msg {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
}
.username-check-msg.success {
    color: var(--success-color);
}
.username-check-msg.error {
    color: var(--error-color);
}

/* Steps Control */
.registration-step {
    transition: opacity 0.3s ease;
}

/* Registration Confirmation Details */
.registration-confirm-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
}
.registration-confirm-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}
.confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
}
.confirm-item {
    display: flex;
    flex-direction: column;
}
.confirm-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.confirm-val {
    font-weight: 600;
    color: var(--text-color);
    word-break: break-all;
}

/* Modal Overlay & Modal Window */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(210, 210, 215, 0.5);
    margin: 20px;
}
.modal-overlay.active .modal-box {
    transform: scale(1);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title-area h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--text-color);
}
.modal-title-area p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--text-color);
}
.modal-body {
    padding: 24px;
}
.modal-body .form-group:last-child {
    margin-bottom: 0;
}
.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

