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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e63946;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e63946;
}

.nav a.active {
    color: #e63946;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.login-btn {
    background: #e63946;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #d62839;
}

.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slider {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.banner-dot.active {
    background: #fff;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e63946;
    margin: 15px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    gap: 8px;
}

.product-image .placeholder-icon {
    font-size: 40px;
    opacity: 0.8;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 20px;
    color: #e63946;
    font-weight: bold;
    margin-bottom: 12px;
}

.product-btn {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #e63946;
    color: #e63946;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.product-btn:hover {
    background: #e63946;
    color: #fff;
}

.quick-entry {
    background: #fff;
    padding: 30px 0;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.quick-entry-card {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s;
}

.quick-entry-card:hover {
    transform: scale(1.02);
}

.quick-entry-card.info {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.quick-entry-card.merchant {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.quick-entry-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.quick-entry-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.quick-entry-card .entry-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s;
}

.quick-entry-card .entry-btn:hover {
    background: rgba(255,255,255,0.3);
}

.footer {
    background: #1a1a1a;
    color: #999;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #e63946;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

.footer-bottom a {
    margin: 0 10px;
    color: #999;
}

.filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 25px;
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #e63946;
    color: #fff;
}

.filter-tab:hover:not(.active) {
    background: #e8e8e8;
}

.filter-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.filter-group select:focus {
    border-color: #e63946;
}

.info-list {
    display: grid;
    gap: 20px;
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-image {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    gap: 8px;
}

.info-image .placeholder-icon {
    font-size: 32px;
    opacity: 0.9;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.info-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-time {
    font-size: 13px;
    color: #999;
}

.info-btn {
    padding: 8px 20px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.info-btn:hover {
    background: #d62839;
}

.detail-header {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-actions {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: #e63946;
    color: #fff;
}

.action-btn.primary:hover {
    background: #d62839;
}

.action-btn.secondary {
    background: #f5f5f5;
    color: #333;
}

.action-btn.secondary:hover {
    background: #e8e8e8;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-btn:hover {
    color: #e63946;
}

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

.process-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e8e8e8;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #e63946;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: #666;
    max-width: 150px;
    margin: 0 auto;
}

.content-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #e63946;
    padding-left: 15px;
}

.content-section p,
.content-section li {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.content-section ul {
    padding-left: 20px;
}

.content-section li {
    list-style: disc;
    margin-bottom: 10px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e63946;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-text h4 {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.download-section {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: #e63946;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #d62839;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.auth-tab.active {
    color: #e63946;
    font-weight: 500;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e63946;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #e63946;
}

.form-input::placeholder {
    color: #aaa;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    background: #d62839;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: #fff3cd;
    color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.modal h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal p {
    color: #666;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn.primary {
    background: #e63946;
    color: #fff;
}

.modal-btn.primary:hover {
    background: #d62839;
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #333;
}

.modal-btn.secondary:hover {
    background: #e8e8e8;
}

.product-detail-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-detail-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-gallery {
    position: sticky;
    top: 100px;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.product-detail-image .placeholder-icon {
    font-size: 80px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.product-detail-image span:last-child {
    font-size: 20px;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-detail-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-detail-price {
    background: #fff5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #e63946;
}

.product-detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 13px;
    color: #999;
}

.meta-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.buy-btn {
    flex: 1;
    padding: 18px 40px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #d62839;
}

.cart-add-btn {
    flex: 1;
    padding: 18px 40px;
    background: #fff;
    color: #e63946;
    border: 2px solid #e63946;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-add-btn:hover {
    background: #fff5f5;
}

.product-detail-tabs {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.tab-btn {
    padding: 18px 30px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #e63946;
    font-weight: 500;
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e63946;
}

.tab-btn:hover:not(.active) {
    color: #333;
    background: #f5f5f5;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.detail-content li {
    list-style: disc;
    margin-bottom: 8px;
}

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

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 15px;
    font-size: 14px;
}

.specs-table td:first-child {
    width: 150px;
    color: #666;
    background: #fafafa;
}

.specs-table td:last-child {
    color: #333;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.review-user {
    font-weight: 500;
    color: #333;
}

.review-rating {
    color: #ffc107;
}

.review-time {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

.review-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-entry-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-options {
        flex-direction: column;
        gap: 15px;
    }

    .info-card {
        flex-direction: column;
    }

    .info-image {
        width: 100%;
        height: 180px;
    }

    .detail-images {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .product-detail-main {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery {
        position: static;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-detail-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .tab-header {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 15px 20px;
        white-space: nowrap;
    }
}
