* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #faf5f5;
    color: #1a1a1a;
}

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

.site-header {
    background: #5c1015;
    color: #fff;
    padding: 16px 0;
}

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

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

.header-nav a {
    color: #e6c3c3;
    text-decoration: none;
}

.cart-link {
    position: relative;
}

.cart-badge {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 6px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
}

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

.catalog-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    align-self: start;
}

.search-form {
    search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.search-form input {
    width: 100%;
    box-sizing: border-box
}
.search-form button {
    width: 100%;
    box-sizing: border-box;
}
.sidebar-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary, #5b6472);
    margin: 0 0 8px;
}

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

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

.category-list a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
}

.category-list li.active a {
    background: #faece7;
    color: #7a1220;
    font-weight: 600;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    font-size: 14px;
}

.pagination a {
    color: #7a1220;
    text-decoration: none;
    font-weight: 600;
}

.category-tag {
    display: inline-block;
    background: #faece7;
    color: #7a1220;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.add-to-cart-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 16px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.qty-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: #7a1220;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.btn-link-danger {
    color: #a32d2d;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: #7a1220;
    margin: 0;
}

.logo {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: 1px;
    display: block;
}

.tagline {
    color: #e6c3c3;
    font-size: 12px;
    margin: 2px 0 0;
}

.registry-note {
    color: #c99a9a;
    font-size: 10px;
    margin: 2px 0 0;
    letter-spacing: 0.2px;
}

.site-header nav a {
    color: #e6c3c3;
    text-decoration: none;
    margin-left: 20px;
}

main {
    padding: 40px 20px;
    min-height: 60vh;
}

.site-footer {
    background: #5c1015;
    color: #cfa1a1;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    border-left: 4px solid #c0392b;
    padding-left: 14px;
    margin-bottom: 24px;
}

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

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-top: 3px solid #c0392b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: center;
}

.product-card h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
}

.product-card img, .product-detail-image img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

.no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f3;
    color: #8a93a0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.short-desc {
    color: #5b6472;
    font-size: 14px;
    min-height: 40px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #7a1220;
    margin: 8px 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(180deg, rgba(122,18,32,0.88), rgba(92,16,21,0.96));
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(122,18,32,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122,18,32,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(122,18,32,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary {
    background: linear-gradient(180deg, rgba(192,57,43,0.85), rgba(155,40,29,0.95));
    box-shadow: 0 4px 14px rgba(192,57,43,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 22px rgba(192,57,43,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
}

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

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

.link-back {
    display: block;
    margin-top: 16px;
    color: #5b6472;
    text-decoration: none;
}

.checkout-summary {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.order-form {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    max-width: 480px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #d5dae1;
    border-radius: 6px;
    font-size: 15px;
}

.field-error {
    color: #d6392b;
    font-size: 13px;
    margin-top: 4px;
}

.order-success {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    max-width: 520px;
}

.alert {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}
