* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f7fb;
    color: #1f2937;
}

.shop-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.shop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e5e7eb;
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.shop-logo span {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0066b3, #00bcd4);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
}

.shop-logo strong {
    display: block;
    color: #06385f;
    font-size: 20px;
}

.shop-logo small {
    color: #64748b;
}

.shop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 10px;
}

.shop-nav a:hover {
    background: #e0f2fe;
    color: #075985;
}

.shop-nav b {
    background: #0066b3;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 12px;
}

.nav-btn {
    background: #0066b3 !important;
    color: #fff !important;
}

.hero {
    padding: 42px 0 26px;
}

.hero-card {
    background: linear-gradient(135deg, #06385f, #008fc5);
    border-radius: 30px;
    color: white;
    padding: 42px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.hero p {
    font-size: 18px;
    color: #dff8ff;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: none;
    background: #0066b3;
    color: white;
    padding: 13px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 15px;
}

.btn-light {
    background: white;
    color: #06385f;
}

.btn-soft {
    background: #e0f2fe;
    color: #075985;
}

.hero-panel {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 24px;
    padding: 22px;
}

.adverts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 20px 0 34px;
}

.advert-card {
    min-height: 180px;
    border-radius: 22px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    position: relative;
    text-decoration: none;
}

.advert-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.advert-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,.70));
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin: 26px 0 16px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
    color: #06385f;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input,
.search-box select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
}

.search-box button {
    margin: 0;
    width: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
}

.product-img {
    height: 190px;
    background: #e5e7eb;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-info h3 {
    margin: 0;
}

.muted {
    color: #64748b;
    font-size: 14px;
}

.price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #0066b3;
    font-weight: 900;
    font-size: 20px;
}

.stock {
    font-size: 13px;
    color: #166534;
    font-weight: 700;
}

.stock.low {
    color: #b45309;
}

.stock.out {
    color: #dc2626;
}

.form-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    margin: 24px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #374151;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

button {
    width: auto;
    border: none;
    padding: 13px 18px;
    border-radius: 12px;
    background: #0066b3;
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    margin-top: 18px;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 16px 0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.review-item {
    background: white;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-weight: 900;
}

.shop-footer {
    margin-top: 48px;
    background: #06385f;
    color: white;
    padding: 34px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1000px) {
    .hero-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adverts {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .search-box {
        margin-top: 14px;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        display: block;
        padding: 12px 0;
    }

    .shop-nav {
        margin-top: 12px;
    }

    .hero-card {
        padding: 28px;
    }

    .product-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.table-card,
.detail-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background: #f8fafc;
    color: #475569;
    padding: 13px;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    padding: 13px;
    border-top: 1px solid #e5e7eb;
}

.qty-input {
    max-width: 110px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
}

.detail-image {
    background: #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    min-height: 380px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-list {
    display: grid;
    gap: 12px;
}

.order-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    margin-bottom: 16px;
    overflow: hidden;
}

.order-head {
    padding: 16px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.order-body {
    padding: 16px;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .order-head {
        grid-template-columns: 1fr;
    }

    .table-card {
        overflow-x: auto;
    }
}