* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

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

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #081a44;
    color: #fff;
    padding: 56px 0 44px;
}

.site-header h1 {
    margin: 0 0 12px;
    font-size: 54px;
    line-height: 1.1;
}

.site-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-links {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-links a {
    background: #fff;
    color: #081a44;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.section {
    padding: 42px 0;
}

.section h2 {
    margin: 0 0 20px;
    font-size: 34px;
}

.toolbar {
    margin-bottom: 30px;
}

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

.toolbar-form input,
.toolbar-form select {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    min-width: 220px;
    font-size: 16px;
}

.toolbar-form button {
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: #081a44;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #dbe2ea;
    object-fit: cover;
    display: block;
}

.card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8eef6;
    color: #3b4a68;
    font-size: 13px;
    margin-bottom: 12px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 30px;
}

.card p {
    color: #475569;
    line-height: 1.8;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
}

.price {
    font-size: 38px;
    font-weight: 700;
}

.stock {
    color: #64748b;
    font-size: 14px;
}

.link-btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 14px;
    background: #081a44;
    color: #fff;
    font-weight: 600;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    padding: 40px 0 60px;
}

.detail-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: #dbe2ea;
    object-fit: cover;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: #334155;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .site-header h1 {
        font-size: 38px;
    }
}

.buy-box {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buy-box input,
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
}

.cart-table {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.checkout-form p {
    margin-bottom: 16px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #dbe7ff;
    font-weight: 600;
}

.page-hero {
    padding: 12px 0 24px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: 54px;
    line-height: 1.1;
}

.page-hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.message-list {
    padding: 18px 0 0;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #e8f1ff;
    color: #16325c;
}

.message.success {
    background: #e8f8ee;
    color: #17603a;
}

.message.error {
    background: #fdecec;
    color: #8a1f1f;
}

.message.warning {
    background: #fff7df;
    color: #7a5a00;
}

.section-soft {
    background: #f1f5f9;
}

.detail-title {
    font-size: 42px;
    margin: 12px 0;
}

.summary-box,
.card-panel,
.order-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.summary-box {
    margin-top: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.site-footer {
    margin-top: 60px;
    background: #081a44;
    color: #dbe7ff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.text-link {
    color: #0f172a;
    font-weight: 600;
}

.hero-category-links {
    margin-top: 16px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.page-link,
.page-current {
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.page-link {
    background: #ffffff;
    color: #081a44;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.page-current {
    background: #081a44;
    color: #ffffff;
}

@media (max-width: 900px) {
    .section-head {
        align-items: flex-start;
    }
}

.text-btn {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.text-btn:hover {
    text-decoration: underline;
}

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

.category-card {
    display: block;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #081a44;
    margin-bottom: 10px;
}

.category-card-desc {
    color: #475569;
    line-height: 1.7;
}

.other-categories {
    margin-bottom: 24px;
}

.related-section {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.banner-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.banner-text h1 {
    margin: 0 0 12px;
    font-size: 56px;
    line-height: 1.1;
}

.banner-text p {
    margin: 0;
    font-size: 18px;
    color: #d7e4ff;
}

.banner-stats {
    display: grid;
    gap: 16px;
}

.banner-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.banner-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.banner-card-text {
    color: #d7e4ff;
    line-height: 1.7;
}

.service-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.service-card h3,
.content-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #081a44;
}

.page-content {
    display: grid;
    gap: 20px;
}

.content-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.9;
    color: #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 24px;
    padding: 28px 0;
}

.footer-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-block p {
    margin: 0 0 10px;
    color: #dbe7ff;
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dbe7ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbe7ff;
    font-size: 14px;
}

@media (max-width: 900px) {
    .banner-hero,
    .service-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner-text h1 {
        font-size: 40px;
    }
}


.delivery-hint {
    margin: 10px 0 18px;
    color: #334155;
    line-height: 1.7;
}

.order-item-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    margin-bottom: 14px;
}

.order-item-card p {
    margin: 0 0 8px;
    line-height: 1.8;
    color: #334155;
}

.info-list p {
    margin: 0 0 10px;
    line-height: 1.8;
    color: #334155;
}

.log-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.log-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.log-item p {
    margin: 0 0 6px;
    line-height: 1.8;
    color: #334155;
}

.detail-main-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.thumb-btn {
    width: 118px;
    height: 88px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}

.thumb-btn.is-active {
    border-color: #081a44;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.status-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #081a44;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.status-pill-light {
    background: #e8eef8;
    color: #0f172a;
}

.notice-box {
    border-radius: 18px;
    padding: 18px 20px;
    margin: 18px 0 0;
}

.notice-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.notice-box p {
    margin: 0;
    line-height: 1.8;
}

.notice-warning {
    background: #fff7df;
    color: #7a5a00;
}

.notice-success {
    background: #e8f8ee;
    color: #17603a;
}

.notice-danger {
    background: #fdecec;
    color: #8a1f1f;
}

.notice-info {
    background: #e8f1ff;
    color: #16325c;
}

.action-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.secondary-link-btn {
    background: #ffffff;
    color: #081a44;
    border: 1px solid #cbd5e1;
}

.payment-step-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    margin-bottom: 14px;
}

.payment-step-box p {
    margin: 0 0 8px;
    line-height: 1.8;
    color: #334155;
}

.checkout-form input[type="file"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 0;
    border: none;
    background: transparent;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 8px;
    background: #081a44;
    box-shadow: 0 0 0 6px rgba(8, 26, 68, 0.10);
}

.timeline-content {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.timeline-time {
    margin: 0 0 6px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.timeline-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.timeline-content p {
    margin: 0;
    line-height: 1.8;
    color: #334155;
}

.timeline-info .timeline-dot {
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.timeline-success .timeline-dot {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.timeline-danger .timeline-dot {
    background: #dc2626;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
}
