/* ============================================
   Prosulab - Common Styles
   Clinical Laboratory Products E-commerce
   ============================================ */

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-input: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --accent: #dc1265;
    --accent2: #0d6efd;
    --accent-hover: #0b5ed7;
    --accent-light: #e7f1ff;
    --success: #198754;
    --success-light: #d1e7dd;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --purple: #6f42c1;
    --purple-light: #e2d9f3;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.2s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    --header-height: 64px;
}

[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252540;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --bg-input: #252540;
    --text-primary: #e8e8f0;
    --text-secondary: #b8b8c8;
    --text-muted: #8888a0;
    --border-color: #2a2a45;
    --border-light: #252540;
    --accent: #dc1265;
    --accent2: #4d8dff;
    --accent-hover: #3d7def;
    --accent-light: #1a2a45;
    --success: #2ecc71;
    --success-light: #1a3a2a;
    --warning: #f1c40f;
    --warning-light: #3a3520;
    --danger: #e74c3c;
    --danger-light: #3a1a1a;
    --purple: #9b59b6;
    --purple-light: #2a1a3a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

/*
a:hover {
    color: var(--accent-hover);
}
*/

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    height: var(--header-height);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.header__logo-text x {
    color: #d90e5b;
}

.header__logo-icon {
/*    width: 32px;*/
/*    height: 32px;*/
/*    border-radius: 4px;*/
}

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

.header__nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.header__dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.header__nav-dropdown {
    position: relative;
}

.header__nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    max-height: 400px;
    overflow-y: auto;
}

.header__nav-dropdown:hover .header__nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__nav-dropdown:hover .header__dropdown-arrow {
    transform: rotate(180deg);
}

.header__nav-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.header__nav-dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

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

.header__search {
    display: flex;
    align-items: center;
}

.header__search-form {
    display: flex;
    align-items: center;
}

.header__search-input {
    width: 200px;
    height: 2rem;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}

.header__search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.header__search-btn {
    height: 2rem;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.header__search-btn svg {
    width: 16px;
    height: 16px;
}

.header__search-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header__cart {
    position: relative;
}

.header__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.header__cart-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header__cart-btn svg {
    width: 22px;
    height: 22px;
}

.header__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.header__theme-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header__theme-icon {
    width: 20px;
    height: 20px;
}

.header__theme-icon--light {
    display: none;
}

[data-theme="dark"] .header__theme-icon--dark {
    display: none;
}

[data-theme="dark"] .header__theme-icon--light {
    display: block;
}

.header__user {
    position: relative;
}

.header__user-menu {
    position: relative;
}

.header__user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.header__user-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header__user-btn svg {
    width: 20px;
    height: 20px;
}

.header__user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
}

.header__user-menu:hover .header__user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__user-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.header__user-dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.header__mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.header__mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.header__mobile-menu {
    display: none;
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: var(--bg-secondary);
    box-shadow: 0 10px 10px #00000033;
/*    overflow-y: auto;*/
}

.header__mobile-menu.active {
    display: block;
    height: fit-content;
}

.header__mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header__mobile-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition);
}

.header__mobile-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==================== Main ==================== */
.main {
    flex: 1;
    min-height: calc(100vh - var(--header-height));
}

/* ==================== Hero ==================== */
.hero {
/*    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);*/
    padding: 24px;
    text-align: center;
}

.hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 32px 0 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
}

.hero__cta:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== Sections ==================== */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ==================== Categories ==================== */
.categories {
    padding: 24px;
}

.categories__container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.category-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

.category-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    transition: all var(--transition);
}

.category-card__arrow svg {
    width: 18px;
    height: 18px;
}

.category-card:hover .category-card__arrow {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

/* ==================== Features ==================== */
.features {
    padding: 60px 24px;
    background: var(--bg-secondary);
}

.features__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==================== Products Grid ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card__image-link {
    display: block;
}

.product-card__image {
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__placeholder {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.5;
}

.product-card__body {
    padding: 20px;
/*    height: 120px;*/
}

.product-card__name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card__name:hover {
    color: var(--accent);
}

.product-card__description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn--outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
}

.btn--small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn--large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ==================== Product Detail ==================== */
.product-detail {
    padding: 40px 24px;
}

.product-detail__container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.product-detail__image {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__placeholder {
    width: 120px;
    height: 120px;
    color: var(--text-muted);
    opacity: 0.5;
}

.product-detail__category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-detail__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-detail__description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-detail__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

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

.product-detail__stock--available {
    color: var(--success);
    font-weight: 500;
}

.product-detail__stock--unavailable {
    color: var(--danger);
    font-weight: 500;
}

.product-detail__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ==================== Quantity Selector ==================== */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500;
    transition: all var(--transition);
}

.quantity-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector--small .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.quantity-selector--small .quantity-input {
    width: 48px;
    height: 32px;
    font-size: 0.9rem;
}

/* ==================== Cart Page ==================== */
.cart-page {
    padding: 40px 24px;
}

.cart-page__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.cart-page__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.cart-items__header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item__product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item__image {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item__placeholder {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    opacity: 0.5;
}

.cart-item__name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.cart-item__category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item__price,
.cart-item__total {
    font-weight: 600;
    text-align: center;
}

.cart-item__total {
    color: var(--accent);
}

.cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.cart-item__remove:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ==================== Cart Summary ==================== */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.cart-summary__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary__row--total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-summary__divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.cart-summary .btn {
    margin-top: 16px;
}

/* ==================== Checkout ==================== */
.checkout-page {
    padding: 40px 24px;
}

.checkout-page__container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.checkout-page__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.checkout-item__info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-item__name {
    font-weight: 500;
    font-size: 0.9rem;
}

.checkout-item__qty {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-item__price {
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-btn {
    margin-top: 24px;
}

.checkout-summary-mobile {
    display: none;
}

/* ==================== Success Page ==================== */
.success-page {
    padding: 80px 24px;
}

.success-page__container {
    max-width: 600px;
    margin: 0 auto;
}

.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.success-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--success-light);
    border-radius: 50%;
    color: var(--success);
}

.success-card__icon svg {
    width: 40px;
    height: 40px;
}

.success-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.success-card__number {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.success-card__message {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-card__actions {
    display: flex;
    justify-content: center;
}

/* ==================== Search Page ==================== */
.search-page {
    padding: 40px 24px;
}

.search-page__container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.search-page__form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-page__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-page__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-page__results {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==================== Error Pages ==================== */
.error-page {
    padding: 80px 24px;
}

.error-page__container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.error-card {
    background: var(--bg-card);
/*    border: 1px solid var(--border-color);*/
/*    border-radius: var(--radius-lg);*/
    padding: 48px;
}

.error-card__code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-card__message {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state--small {
    padding: 40px 24px;
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==================== Auth Pages ==================== */
.auth-page {
    padding: 60px 24px;
}

.auth-page__container {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card__icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-form .btn {
    margin-top: 8px;
}

.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-card__footer a {
    color: var(--accent);
}

.auth-card__footer span {
    margin: 0 8px;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert--error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert--success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

/* ==================== Admin ==================== */
.admin-page {
    padding: 40px 24px;
}

.admin-page__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.admin-header__title {
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-header__actions {
    display: flex;
    gap: 8px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-card__icon svg {
    width: 24px;
    height: 24px;
}

.stat-card__icon--blue {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-card__icon--green {
    background: var(--success-light);
    color: var(--success);
}

.stat-card__icon--yellow {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card__icon--purple {
    background: var(--purple-light);
    color: var(--purple);
}

.stat-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-section__title {
    font-size: 1.125rem;
    font-weight: 600;
}

.admin-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ==================== Tables ==================== */
.table-responsive {
    overflow-x: auto;
}

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

.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table__link {
    color: var(--accent);
    font-weight: 500;
}

.text-right {
    text-align: right;
}

.table__total td {
    font-weight: 700;
    font-size: 1rem;
}

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

.status-badge--pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-badge--processing {
    background: var(--accent-light);
    color: var(--accent);
}

.status-badge--shipped {
    background: var(--purple-light);
    color: var(--purple);
}

.status-badge--delivered {
    background: var(--success-light);
    color: var(--success);
}

.status-badge--active {
    background: var(--success-light);
    color: var(--success);
}

.status-badge--inactive {
    background: var(--danger-light);
    color: var(--danger);
}

/* ==================== Order Info ==================== */
.order-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-info__row {
    display: flex;
    gap: 12px;
}

.order-info__label {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 100px;
}

.order-info__value {
    color: var(--text-primary);
}

/* ==================== Admin Form ==================== */
.admin-form .form-group {
    margin-bottom: 16px;
}

.admin-form .btn {
    margin-top: 8px;
}

/* ==================== Related Products ==================== */
.related-products {
    margin-top: 64px;
}

/* ==================== Category Page ==================== */
.category-page {
    padding: 40px 24px;
}

.category-page__container {
    max-width: 1400px;
    margin: 0 auto;
}

.category-page__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.category-page__icon {
    font-size: 4rem;
    line-height: 1;
}

.category-page__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-page__desc {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.category-page__count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 24px;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.footer__description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer__list a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer__list a:hover {
    color: var(--accent);
}

.footer__bottom {
/*    padding-top: 24px;*/
/*    border-top: 1px solid var(--border-color);*/
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .footer__grid {}
}

@media (max-width: 960px) {
    .cart-page__grid {
        grid-template-columns: 1fr;
    }
    .checkout-page__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav,
    .header__search {
        display: none;
    }

    .header__mobile-menu-btn {
        display: flex;
    }

    .header__user-btn span {
        display: none;
    }

    .hero {
/*        display: none;*/
        padding: 48px 24px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .category-card__icon {
        font-size: 2.5rem;
    }

    .category-card__name {
        font-size: 0.9rem;
    }

    .category-card__desc {
        display: none;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail__actions {
        flex-direction: column;
    }

    .cart-page__grid {
        grid-template-columns: 1fr;
    }

    .cart-items__header {
        display: none;
    }

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

    .cart-item__product {
        width: 100%;
    }

    .cart-item__price::before {
        content: 'Precio: ';
        color: var(--text-muted);
        font-weight: 400;
    }

    .cart-item__total::before {
        content: 'Total: ';
        color: var(--text-muted);
        font-weight: 400;
    }

    .checkout-page__grid {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        display: none;
    }

    .checkout-summary-mobile {
        display: block;
        margin-bottom: 24px;
    }

    .checkout-summary-mobile .cart-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__grid {}

    .search-page__form {
        flex-direction: column;
    }

    .category-page__header {
        flex-direction: column;
        text-align: center;
    }
}

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

    .features__grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .cart-summary {
        position: static;
    }
}


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

.product-card,
.category-card,
.feature-card {
    animation: fadeIn 0.3s ease forwards;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== Selection ==================== */
::selection {
    background: var(--accent);
    color: white;
}
