/* ============================================
   ROOT & VARIABLES
   ============================================ */
:root {
    --md-primary: #1e88e5;
    --md-primary-dark: #0d47a1;
    --md-surface: #ffffff;
    --md-on-surface: #1e1e1e;
    --md-on-surface-variant: #5f6368;
    --md-error: #e53935;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    padding-top: 72px;
    padding-bottom: 80px;
}

/* ============================================
   GLOBAL COMPONENTS
   ============================================ */

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.md-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--md-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.md-logo {
    display: none;
    flex-shrink: 0;
}

.md-logo h1 {
    font-size: 1.3rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.md-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 28px;
    padding: 8px 16px;
    gap: 8px;
    transition: all 0.2s;
    max-width: 400px;
}

.md-search-field:focus-within {
    background: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.md-search-field .material-symbols-outlined {
    font-size: 20px;
    color: #5f6368;
}

.md-search-field form {
    display: flex;
    align-items: center;
    padding: 4px 8px;
	min-width: 100%;
}

.md-search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 12px;
    font-size: 16px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.md-search-input::placeholder {
    color: var(--md-on-surface-variant);
}

.md-search-submit,
.md-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5f6368;
    flex-shrink: 0;
}

.md-search-submit:hover,
.md-search-clear:hover {
    background: rgba(0, 0, 0, 0.05);
}

.md-search-clear {
    display: none;
}

.md-search-input:not(:placeholder-shown) ~ .md-search-clear {
    display: flex;
}

.md-top-bar .cart-icon,
.md-top-bar .profile-icon {
    display: flex !important;
}

.mobile-filter-bar {
    display: none !important;
}

.md-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.md-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.md-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 500;
    min-width: 18px;
    height: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Profile Menu */
.md-menu {
    position: absolute;
    top: 60px;
    right: 16px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    display: none;
    z-index: 1100;
    overflow: hidden;
}

.md-menu.show {
    display: block;
}

.md-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #1e1e1e;
    font-size: 14px;
    transition: background 0.2s;
}

.md-menu a:hover {
    background: #f5f5f5;
}

/* Dropdown & Categories */
.header-categories {
    position: relative;
    margin-left: 16px;
}

.header-categories .dropdown-toggle {
    display: none;
}

.header-categories .md3-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--md-surface);
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.header-categories .md3-dropdown-trigger:hover {
    background: rgba(30, 136, 229, 0.04);
    border-color: var(--md-primary);
}

.header-categories .md3-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.header-categories .md3-category-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #1e1e1e;
    font-size: 14px;
}

.header-categories .md3-category-item:hover {
    background: rgba(30, 136, 229, 0.08);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.menu-toggle {
    display: inline-flex;
    background: none;
    border: none;
    cursor: pointer;
}

/* Catalog & Filters */
.desktop-filters {
    background: var(--md-surface);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--md-primary);
    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: var(--md-surface-variant);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-filter-bar,
.mobile-filter-bar {
    display: flex !important;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-header .info {
    margin-bottom: 0;
}

.catalog-header .sort-bar {
    margin-bottom: 0;
}

/* Sorting & Info */
.info {
    background: var(--md-surface-variant);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--md-on-surface-variant);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.sort-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}

.sort-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--md-surface-variant);
    border-radius: 32px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--md-on-surface);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.sort-link.active {
    background: var(--md-primary);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--md-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: var(--md-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.product-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 12px 12px 4px;
    color: var(--md-on-surface);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 12px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-more {
    font-size: 11px;
    color: var(--md-on-surface-variant);
    background: var(--md-surface-variant);
    padding: 2px 8px;
    border-radius: 20px;
}

.product-price {
    margin: 8px 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-primary-dark);
}

.sale-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-error);
}

.price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--md-on-surface-variant);
}

.product-stock {
    margin: 4px 12px 12px;
}

.stock-in {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.stock-out {
    display: inline-block;
    background: #ffebee;
    color: var(--md-error);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.empty-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--md-surface);
    border-radius: 28px;
    color: var(--md-on-surface-variant);
}

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

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-surface);
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    color: var(--md-on-surface);
}

.pagination a.active {
    background: var(--md-primary);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
}

/* Product Page */
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 8px 12px;
    border-radius: 28px;
    transition: background 0.2s;
}

.back-link:hover {
    background: rgba(30, 136, 229, 0.08);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--md-surface);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
    animation: fadeIn 0.4s ease-out;
}

.product-gallery {
    position: relative;
}

.main-image {
    background: var(--md-surface-variant);
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image .no-image {
    font-size: 64px;
    opacity: 0.5;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    background: var(--md-surface-variant);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.thumbnail:hover {
    transform: scale(1.02);
}

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

.product-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-sku {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--md-primary-dark);
    margin-bottom: 16px;
}

.product-stock {
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 500;
}

.badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.out-of-stock {
    background: #ffebee;
    color: var(--md-error);
}

.color-selector {
    margin-bottom: 24px;
}

.color-selector label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--md-surface-variant);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.color-option.selected {
    background: #e3f2fd;
    border-color: var(--md-primary);
}

.color-option:hover {
    background: #e8e8e8;
}

.color-dot-big {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-dot-big.unknown {
    background: linear-gradient(135deg, #ddd, #eee);
    color: #666;
}

.color-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--md-on-surface);
}

.add-to-cart-form {
    margin-bottom: 24px;
}

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

.quantity-selector label {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}

.quantity-selector input {
    width: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    font-size: 16px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.btn-cart {
    width: 100%;
    background: var(--md-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart:hover {
    background: var(--md-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cart:active {
    transform: translateY(0);
}

.product-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9e9e9;
}

.product-description h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--md-on-surface);
}

.product-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--md-on-surface-variant);
}

/* Specs Table */
.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--md-on-surface);
}

.specs-table {
    width: 100%;
    background: var(--md-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

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

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    width: 200px;
    padding: 16px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: var(--md-on-surface);
    background: var(--md-surface-variant);
}

.specs-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--md-on-surface-variant);
    background: var(--md-surface);
}

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

.cart-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.cart-message {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.cart-message.error {
    background: #ffebee;
    color: var(--md-error);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--md-surface);
    border-radius: 28px;
    color: var(--md-on-surface-variant);
}

.cart-table {
    width: 100%;
    background: var(--md-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e9e9e9;
}

.cart-table th {
    background: var(--md-surface-variant);
    font-weight: 500;
    color: var(--md-on-surface);
}

.cart-product-image {
    width: 60px;
    height: 60px;
    background: var(--md-surface-variant);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-product-name {
    font-weight: 500;
    color: var(--md-on-surface);
}

.cart-product-sku {
    font-size: 12px;
    color: var(--md-on-surface-variant);
    margin-top: 4px;
}

.cart-product-price,
.cart-product-total {
    font-weight: 500;
    color: var(--md-primary-dark);
}

.quantity-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
}

.btn-update,
.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: background 0.2s;
}

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

.btn-remove {
    color: var(--md-error);
}

.btn-remove:hover {
    background: rgba(229, 57, 53, 0.1);
}

.cart-total {
    text-align: right;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--md-primary-dark);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-clear {
    background: none;
    border: 1px solid var(--md-error);
    color: var(--md-error);
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: rgba(229, 57, 53, 0.1);
}

.btn-checkout {
    background: var(--md-primary);
    color: white;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-checkout:hover {
    background: var(--md-primary-dark);
    transform: translateY(-2px);
}

/* Checkout */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--md-surface);
    border-radius: 28px;
    margin-bottom: 20px;
}

.success-message h2 {
    margin: 16px 0;
    color: var(--md-on-surface);
}

.order-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--md-primary);
    margin: 20px 0;
}

.checkout-title {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.error-message {
    background: #ffebee;
    color: var(--md-error);
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.checkout-form {
    background: var(--md-surface);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--md-on-surface);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.form-group input:disabled {
    background: #f5f5f5;
    color: var(--md-on-surface-variant);
}

.btn-submit {
    width: 100%;
    background: var(--md-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: var(--md-primary-dark);
    transform: translateY(-1px);
}

.cart-summary {
    background: var(--md-surface);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9e9e9;
}

.summary-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    background: var(--md-surface-variant);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.summary-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: 4px;
}

.summary-item-price {
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

.summary-total {
    padding-top: 16px;
    border-top: 2px solid #e9e9e9;
    font-size: 18px;
    font-weight: 700;
    color: var(--md-primary-dark);
    display: flex;
    justify-content: space-between;
}

/* Account & Orders */
.account-container,
.orders-container,
.order-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.account-header,
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.account-title {
    font-size: 28px;
    font-weight: 600;
}

.account-welcome {
    background: #e8f0fe;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.account-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.account-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
}

.account-nav a.active {
    color: #2a5298;
    border-bottom-color: #2a5298;
}

.orders-table,
.items-table {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.orders-table th,
.orders-table td,
.items-table th,
.items-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.orders-table th,
.items-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-P { background: #fff3cd; color: #856404; }
.status-C { background: #f8d7da; color: #721c24; }
.status-S { background: #d4edda; color: #155724; }

.info-box,
.order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.info-row { margin-bottom: 10px; }
.info-label { font-weight: 600; width: 120px; display: inline-block; }

.order-info-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.order-info-label {
    width: 150px;
    font-weight: 600;
    color: #666;
}

.order-info-value { flex: 1; }
.order-total {
    text-align: right;
    padding: 15px 20px;
    background: #fff;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
}
.order-total span { color: #2a5298; font-size: 22px; }

.empty-orders {
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 16px;
}

.order-link,
.back-link { color: #2a5298; text-decoration: none; }

/* Footer */
.site-footer {
    background: #1e1e1e;
    color: #fff;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright { font-size: 14px; opacity: 0.7; }

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

/* Login */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover { background: #1e3c72; }

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a { color: #2a5298; text-decoration: none; }

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: #2a5298;
}

.login-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.btn-catalog {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #2a5298;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}

/* Mobile Bottom Nav */
.md-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e9e9e9;
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.nav-item .material-symbols-outlined {
    font-size: 24px;
    color: #5f6368;
}

.nav-item.active {
    color: #1e88e5;
}

.nav-item.active .material-symbols-outlined {
    color: #1e88e5;
    font-variation-settings: 'FILL' 1;
}

/* Shared Buttons */
.btn-catalog {
    display: inline-block;
    background: var(--md-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
}

/* Homepage Components */
.hero-banner {
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    border-radius: 28px;
    padding: 48px 32px;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 2.5rem; font-weight: 500; margin-bottom: 16px; }
.hero-content p { font-size: 1.1rem; margin-bottom: 24px; opacity: 0.9; }

.hero-btn {
    display: inline-block;
    background: white;
    color: var(--md-primary);
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.categories-section { margin-bottom: 40px; }
.section { margin-bottom: 48px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--md-on-surface);
}

.section-link {
    color: var(--md-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.category-card {
    background: var(--md-surface);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-icon { font-size: 48px; margin-bottom: 12px; }
.category-name { font-size: 16px; font-weight: 500; color: var(--md-on-surface); }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .filter-group { min-width: 100%; }
    .info { margin-bottom: 16px; }
    .product-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px;
    }
    .nav-menu { display: none; }
    .md-top-bar .cart-icon,
    .md-top-bar .profile-icon { display: none !important; }
    .catalog-filter-bar,
    .mobile-filter-bar { display: flex !important; }
    .site-footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .cart-table th,
    .cart-table td { padding: 12px; }
    .cart-product-image { width: 50px; height: 50px; }
    .cart-title { font-size: 24px; }
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .checkout-title { font-size: 24px; }
    .specs-table th,
    .specs-table td { padding: 12px 16px; }
    .specs-table th { width: 120px; }
    .product-title { font-size: 1.35rem; }
    .product-price { font-size: 28px; }
    .hero-banner { padding: 32px 20px; }
    .hero-content h1 { font-size: 1.75rem; }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card { padding: 16px; }
    .category-icon { font-size: 32px; }
    .md-logo { display: none; }
    .md-search-field { flex: 1; max-width: none; }
    .md-search-field { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .header-categories .dropdown-toggle:checked ~ .md3-dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
        position: fixed; top: auto; bottom: 80px; left: 16px; right: 16px;
        width: auto; max-height: 60vh;
    }
    .header-categories { margin-left: 0; }
    .header-categories .md3-dropdown-trigger {
        padding: 8px; gap: 0; min-width: 40px; justify-content: center;
    }
    .header-categories .md3-dropdown-trigger .catalog-text,
    .header-categories .md3-dropdown-trigger .catalog-arrow { display: none; }
    body { padding-bottom: 80px; }
    .md-bottom-nav { display: none; }
    .catalog-header {
        display: flex; justify-content: space-between; align-items: center;
        gap: 8px; margin-bottom: 16px; margin-top: 8px;
    }
    .info {
        padding: 4px 10px !important; margin-bottom: 0 !important;
        display: flex; align-items: center; gap: 4px; font-size: 0;
    }
    .info .material-symbols-outlined { font-size: 16px; }
    .info strong { font-size: 14px; margin-left: 4px; }
    .sort-bar .sort-label { display: none; }
    .sort-bar { gap: 4px; margin-bottom: 0; }
    .sort-link { padding: 4px 8px !important; font-size: 12px !important; }
}

@media (max-width: 640px) {
    /* Already handled in 768px, kept for specificity if needed */
}

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

@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .header-categories:hover .md3-dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .md-bottom-nav { display: none; }
    .md-logo { display: block; }
    .header-categories .md3-dropdown-trigger .catalog-text,
    .header-categories .md3-dropdown-trigger .catalog-arrow { display: inline; }
    .header-categories .md3-dropdown-trigger { padding: 8px 16px; gap: 8px; min-width: 250px; }
    .md-top-bar .cart-icon,
    .md-top-bar .profile-icon { display: flex !important; }
}

/* ============================================
   HEADER & LAYOUT OVERRIDES (Priority)
   ============================================ */
.md-top-bar { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 1000 !important; }
body { padding-top: 70px !important; }

@media (max-width: 768px) {
    .md-top-bar { position: fixed !important; }
    .md-logo { display: none !important; }
    .header-categories .md3-dropdown-trigger .catalog-text,
    .header-categories .md3-dropdown-trigger .catalog-arrow { display: none !important; }
    .header-categories .md3-dropdown-trigger { padding: 8px !important; gap: 0 !important; min-width: 40px !important; justify-content: center !important; }
    .md-search-field { flex: 1 !important; max-width: none !important; }
    .md-top-bar .cart-icon,
    .md-top-bar .profile-icon { display: none !important; }
    .md-bottom-nav {
        display: flex !important; position: fixed !important; bottom: 0 !important;
        left: 0 !important; right: 0 !important; background: rgba(255,255,255,0.96) !important;
        backdrop-filter: blur(20px) !important; height: 70px !important;
        justify-content: space-around !important; align-items: center !important;
        z-index: 999 !important; border-top: 1px solid #e9e9e9 !important;
    }
    body { padding-bottom: 70px !important; }
    .container, .hero-banner, .categories-section, .section, .products-grid, .category-card, .product-card {
        max-width: 100% !important; overflow-x: hidden !important;
    }
    .hero-banner { margin-left: 0 !important; margin-right: 0 !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
    .categories-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; width: 100% !important; }
    .products-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; width: 100% !important; }
    .product-card { width: 100% !important; min-width: 0 !important; }
    body, html { overflow-x: hidden !important; width: 100% !important; }
    .container { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box !important; }
}

@media (min-width: 769px) {
    .md-logo { display: block !important; }
    .header-categories .md3-dropdown-trigger .catalog-text,
    .header-categories .md3-dropdown-trigger .catalog-arrow { display: inline !important; }
    .header-categories .md3-dropdown-trigger { padding: 8px 16px !important; gap: 8px !important; }
    .md-top-bar .cart-icon,
    .md-top-bar .profile-icon { display: flex !important; }
    .md-bottom-nav { display: none !important; }
}

/* UI Effects */
.nav-item.active::before {
    content: '' !important; position: absolute !important; top: -8px !important;
    width: 32px !important; height: 3px !important;
    background: var(--md-primary, #1e88e5) !important; border-radius: 2px !important;
}

.md-icon-btn, .md3-dropdown-trigger, .md-search-submit, .md-search-clear {
    position: relative !important; overflow: hidden !important;
}

.md-icon-btn::after, .md3-dropdown-trigger::after, .md-search-submit::after, .md-search-clear::after {
    content: '' !important; position: absolute !important; top: 50% !important; left: 50% !important;
    width: 0 !important; height: 0 !important; border-radius: 50% !important;
    background: rgba(30, 136, 229, 0.3) !important; transform: translate(-50%, -50%) !important;
    transition: width 0.2s, height 0.2s !important;
}

.md-icon-btn:active::after, .md3-dropdown-trigger:active::after, .md-search-submit:active::after, .md-search-clear:active::after {
    width: 200% !important; height: 200% !important;
}

.md-search-field:focus-within { background: #e8e8e8 !important; box-shadow: 0 0 0 2px rgba(30,136,229,0.2) !important; }
.md-search-clear { display: none !important; }
.md-search-input:not(:placeholder-shown) ~ .md-search-clear { display: flex !important; }


@media (min-width: 769px) {
    .header-categories:hover .md3-dropdown-menu { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
}
@media (max-width: 768px) {
    .dropdown-toggle:checked ~ .md3-dropdown-menu {
        opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important;
        position: fixed !important; top: 15% !important; bottom: 70px !important;
        left: 16px !important; right: 16px !important; width: auto !important; max-height: 70vh !important;
    }
}
.md3-dropdown-menu { opacity: 0 !important; visibility: hidden !important; transform: translateY(-10px) !important; transition: all 0.2s ease !important; }
















/* ============================================
   MD3 - ПОДСВЕТКА ТЕКУЩЕЙ КАТЕГОРИИ В МЕНЮ
   ============================================ */
@media (min-width: 769px) {
    .md3-category-item.active {
        background: rgba(30, 136, 229, 0.08) !important;
        color: var(--md-primary) !important;
        font-weight: 500 !important;
        border-left: 3px solid var(--md-primary) !important;
        padding-left: 17px !important;
    }
    .md3-category-item.active.level-1 {
        padding-left: 33px !important;
    }
    .md3-category-item.active.level-2 {
        padding-left: 49px !important;
    }
}

/* ============================================
   ССЫЛКА КАТЕГОРИИ В КНОПКЕ
   ============================================ */
.catalog-text-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.catalog-text-link:hover {
    color: var(--md-primary);
}

/* ============================================
   ТРИГГЕР ДЛЯ ЧЕКБОКСА
   ============================================ */
.menu-label,
.arrow-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.menu-label .material-symbols-outlined,
.arrow-label .material-symbols-outlined {
    font-size: 24px;
}

/* Обеспечиваем, чтобы клик по ссылке не переключал чекбокс */
.md3-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ - ТОЛЬКО ИКОНКИ
   ============================================ */
@media (max-width: 768px) {
    .catalog-text-link,
    .catalog-text {
        display: none !important;
    }
    
    .md3-dropdown-trigger {
        padding: 8px !important;
        gap: 0 !important;
    }
    
    .menu-label,
    .arrow-label {
        padding: 4px;
    }
}






/* ============================================
   MATERIAL DESIGN 3 - ЛИЧНЫЙ КАБИНЕТ (account.php)
   ============================================ */

.md3-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Header */
.md3-account-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 24px;
    padding: 24px 32px;
    margin-bottom: 24px;
    color: white;
}

.md3-account-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.md3-account-title .material-symbols-outlined {
    font-size: 32px;
}

.md3-account-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.md3-account-welcome {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Navigation Tabs */
.md3-account-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 40px;
    padding: 4px;
    border: 1px solid #e0e0e0;
}

.md3-nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #5f6368;
    transition: all 0.2s;
}

.md3-nav-tab .material-symbols-outlined {
    font-size: 18px;
}

.md3-nav-tab.active {
    background: #1e88e5;
    color: white;
}

.md3-nav-tab:not(.active):hover {
    background: #f0f0f0;
}

/* Info Card */
.md3-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 32px;
}

.md3-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.md3-info-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.md3-info-card-body {
    padding: 16px 20px;
}

.md3-info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.md3-info-row:last-child {
    border-bottom: none;
}

.md3-info-label {
    width: 80px;
    font-weight: 500;
    color: #5f6368;
}

.md3-info-value {
    flex: 1;
    color: #1e1e1e;
}

/* Section Header */
.md3-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.md3-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Desktop Table */
.md3-desktop-table {
    display: block;
}

.md3-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.md3-orders-table th,
.md3-orders-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.md3-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.75rem;
    color: #5f6368;
}

.md3-orders-table tr:last-child td {
    border-bottom: none;
}

.md3-table-row:hover {
    background: #f5f5f5;
}

.md3-order-number {
    font-weight: 600;
    color: #1e88e5;
}

.md3-order-total {
    font-weight: 700;
}

/* Status Badges */
.md3-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 32px;
    font-size: 0.75rem;
    font-weight: 600;
}

.md3-status-P { background: #fff3cd; color: #856404; }
.md3-status-C { background: #d1fae5; color: #065f46; }
.md3-status-S { background: #dbeafe; color: #1e40af; }
.md3-status-X { background: #fee2e2; color: #991b1b; }

.md3-link {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.md3-link:hover {
    text-decoration: underline;
}

/* Empty State */
.md3-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.md3-empty-state .material-symbols-outlined {
    font-size: 64px;
    color: #5f6368;
    margin-bottom: 16px;
}

.md3-empty-state p {
    margin-bottom: 20px;
    color: #5f6368;
}

.md3-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.md3-btn-primary {
    background: #1e88e5;
    color: white;
}

.md3-btn-primary:hover {
    background: #1565c0;
}

/* Mobile Cards */
.md3-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.md3-order-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.md3-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.md3-order-number-mobile {
    font-weight: 600;
    font-size: 1rem;
    color: #1e88e5;
}

.md3-order-card-body {
    padding: 16px;
}

.md3-order-card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.md3-order-card-row:last-child {
    border-bottom: none;
}

.md3-order-card-label {
    color: #5f6368;
}

.md3-order-card-value {
    font-weight: 500;
}

.md3-order-total-mobile {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e88e5;
}

.md3-order-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
}

.md3-link-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .md3-desktop-table {
        display: none;
    }
    
    .md3-mobile-cards {
        display: flex;
    }
    
    .md3-account-nav {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    
    .md3-nav-tab {
        flex: 1;
        min-width: calc(50% - 8px);
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .md3-account-header {
        padding: 20px;
    }
    
    .md3-account-title h1 {
        font-size: 1.25rem;
    }
    
    .md3-info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .md3-info-label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .md3-nav-tab {
        flex-direction: column;
        gap: 4px;
    }
}