/* ============================================
   TransitionOne Design System
   Brand: Minimal, calm, technical, premium
   ============================================ */

/* --- CSS Variables --- */
:root {
    --navy: #0E1420;
    --navy-light: #151D2E;
    --navy-mid: #1A2438;
    --white: #FFFFFF;
    --grey: #8B95A5;
    --grey-light: #B0B8C5;
    --orange: #F59E2E;
    --orange-hover: #E08C1A;
    --error: #E54D4D;
    --success: #2ECC71;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.2s ease-in-out;
    --max-width: 1200px;
    --max-width-narrow: 720px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover {
    color: var(--orange);
}

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

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: var(--font);
    font-size: 1rem;
}

ul, ol {
    list-style: none;
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: 5rem 0;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--orange);
    color: var(--navy);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Navigation --- */
.main-nav {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-light);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--grey-light);
}

.cart-link:hover {
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--orange);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 20, 32, 0.3) 0%,
        rgba(14, 20, 32, 0.7) 60%,
        var(--navy) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--grey-light);
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: var(--navy);
    border: none;
}

.btn-primary:hover {
    background: var(--orange-hover);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    border-color: var(--white);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Product Rows (Homepage) --- */
.products-preview {
    padding: 0;
}

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

.product-row--reversed {
    direction: rtl;
}

.product-row--reversed > * {
    direction: ltr;
}

.product-row__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.product-row__image:hover img {
    transform: scale(1.03);
}

.product-row__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--navy-light);
}

.product-row:nth-child(even) .product-row__info {
    background: var(--navy-mid);
}

.product-row__info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.product-row__subtitle {
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-row__desc {
    color: var(--grey-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.product-row__highlights {
    list-style: none;
    margin-bottom: 2rem;
    max-width: 500px;
}

.product-row__highlights li {
    color: var(--grey-light);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.product-row__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

.product-row__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.product-row__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey);
}

/* --- Product Grid (Products Page) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    color: var(--white);
}

.product-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__info {
    padding: 1.5rem;
}

.product-card__info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-card__info p {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-card__price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
}

/* --- Product Detail --- */
.product-detail {
    padding: 3rem 0 5rem;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-light);
    aspect-ratio: 1;
}

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

.product-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.product-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.5;
    transition: opacity var(--transition);
    border: 2px solid transparent;
    padding: 0;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    opacity: 1;
    border-color: var(--orange);
}

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

.product-info__brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.product-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.product-info__price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-info__tax {
    font-size: 0.8rem;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.product-info__form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--grey-light);
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
}

.quantity-input--small {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--grey-light);
    transition: color var(--transition);
}

.qty-btn:hover {
    color: var(--white);
}

.quantity-input input,
.quantity-input span {
    width: 40px;
    height: 36px;
    text-align: center;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 36px;
}

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

.quantity-input input[type="number"] {
    -moz-appearance: textfield;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description p {
    color: var(--grey-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.product-specs,
.product-compat {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-specs > summary,
.product-compat > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-specs > summary::-webkit-details-marker,
.product-compat > summary::-webkit-details-marker {
    display: none;
}

.product-specs > summary::after,
.product-compat > summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--grey-light);
    flex-shrink: 0;
    margin-left: 1rem;
}

.product-specs[open] > summary::after,
.product-compat[open] > summary::after {
    content: '\2212';
}

.product-specs h3,
.product-compat h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.product-specs[open] > summary h3,
.product-compat[open] > summary h3 {
    margin-bottom: 0;
}

.product-specs[open] > .spec-item:first-of-type,
.product-compat[open] > p:first-of-type {
    margin-top: 1.5rem;
}

.spec-item {
    margin-bottom: 1.25rem;
}

.spec-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.spec-item p {
    font-size: 0.9rem;
    color: var(--grey-light);
    line-height: 1.6;
}

.product-compat > p {
    color: var(--grey-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.compat-list {
    columns: 1;
}

.compat-list li {
    font-size: 0.85rem;
    color: var(--grey-light);
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
}

.compat-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--orange);
    transform: translateY(-50%);
}

/* --- Product Upsell (Combo Bundle) --- */
.product-upsell {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-upsell__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-upsell__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-upsell__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.product-upsell__image:hover img {
    transform: scale(1.03);
}

.product-upsell__info {
    padding: 2.5rem 2.5rem 2.5rem 0;
}

.product-upsell__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-upsell__info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-upsell__subtitle {
    color: var(--grey-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-upsell__pitch {
    color: var(--grey-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.product-upsell__pricing {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-upsell__price {
    font-size: 1.3rem;
    font-weight: 700;
}

.product-upsell__saving {
    font-size: 0.8rem;
    color: var(--orange);
    font-weight: 500;
}

/* --- Cart --- */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-light);
}

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

.cart-item__info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.cart-item__info h3 a {
    color: var(--white);
}

.cart-item__info h3 a:hover {
    color: var(--orange);
}

.cart-item__price {
    color: var(--grey);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.cart-item__total {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: right;
}

.btn-remove {
    color: var(--grey);
    padding: 0.5rem;
    transition: color var(--transition);
}

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

.cart-summary {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-summary__total {
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-summary__note {
    font-size: 0.8rem;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.cart-summary .btn + .btn {
    margin-top: 0.75rem;
}

/* --- Checkout --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.checkout-form fieldset {
    margin-bottom: 2rem;
}

.checkout-summary {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.checkout-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.checkout-item__info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

.checkout-item__qty {
    font-size: 0.8rem;
    color: var(--grey);
}

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

.checkout-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.75rem 0;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 0.5rem;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--grey-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B95A5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

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

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

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

.form-group--grow {
    flex: 1;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.3rem;
}

.optional {
    color: var(--grey);
    font-weight: 400;
}

/* --- Newsletter --- */
.newsletter {
    background: var(--navy-light);
    text-align: center;
}

.newsletter h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: var(--grey-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
}

.newsletter-input-group input:focus {
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: var(--grey);
}

.newsletter-input-group .btn {
    border-radius: 0;
    padding: 0.75rem 1rem;
}

/* --- Alerts --- */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(229, 77, 77, 0.12);
    border: 1px solid rgba(229, 77, 77, 0.3);
    color: var(--error);
}

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge--pending {
    background: rgba(245, 158, 46, 0.15);
    color: var(--orange);
}

.status-badge--paid {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.status-badge--shipped {
    background: rgba(52, 152, 219, 0.15);
    color: #3498DB;
}

.status-badge--completed {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.status-badge--cancelled,
.status-badge--refunded {
    background: rgba(229, 77, 77, 0.15);
    color: var(--error);
}

/* --- Page Headers --- */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: var(--grey);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state p {
    color: var(--grey);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Order Confirmation --- */
.confirmation-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.confirmation-header svg {
    margin: 0 auto 1rem;
}

.confirmation-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.confirmation-header p {
    color: var(--grey-light);
    margin-bottom: 1.5rem;
}

.order-details,
.order-items-summary,
.order-shipping-info {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.order-detail-row + .order-detail-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-detail-row span:first-child {
    color: var(--grey);
    font-size: 0.9rem;
}

.order-items-summary h3,
.order-shipping-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.order-shipping-info p {
    color: var(--grey-light);
    line-height: 1.7;
}

/* --- Error Page --- */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-page h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--grey);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-light);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--grey-light);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--grey);
}

/* --- Contact --- */
.contact-form {
    max-width: 500px;
    margin-top: 2rem;
}

.contact-form .btn {
    margin-top: 0.5rem;
}

/* ============================================
   Admin Styles
   ============================================ */

.admin-body {
    background: var(--navy);
}

.admin-header {
    background: var(--navy-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--grey);
}

.admin-logo:hover {
    color: var(--white);
}

.admin-nav {
    display: flex;
    gap: 1.5rem;
}

.admin-nav a {
    font-size: 0.85rem;
    color: var(--grey);
}

.admin-nav a:hover {
    color: var(--white);
}

.admin-main {
    padding: 2rem 0;
}

.admin-main h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Admin Login */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.admin-login__card {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.admin-login__card img {
    margin: 0 auto 1.5rem;
}

.admin-login__card h1 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.admin-login__card .form-group {
    text-align: left;
}

/* Admin Table */
.admin-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-filter {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: var(--grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all var(--transition);
}

.admin-filter:hover,
.admin-filter.active {
    color: var(--white);
    border-color: var(--orange);
}

.admin-filter .count {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

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

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table td a {
    color: var(--orange);
    font-weight: 500;
}

.admin-table td small {
    display: block;
    font-size: 0.8rem;
    color: var(--grey);
}

.admin-table--compact th,
.admin-table--compact td {
    padding: 0.5rem 0.75rem;
}

.admin-table tfoot td {
    font-size: 0.85rem;
    color: var(--grey);
}

.admin-table .total-row td {
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Order Detail */
.admin-back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.admin-back:hover {
    color: var(--white);
}

.admin-order-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-order-header h1 {
    margin-bottom: 0;
}

.admin-meta {
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 2rem;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-card {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.admin-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.admin-card p {
    color: var(--grey-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.admin-card a {
    color: var(--orange);
}

.admin-detail-grid .admin-card:first-child {
    grid-column: 1 / -1;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .product-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-row--reversed {
        direction: ltr;
    }

    .product-row__image {
        aspect-ratio: 16/9;
    }

    .product-row__info {
        padding: 2.5rem 1.5rem;
    }

    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-upsell__inner {
        grid-template-columns: 1fr;
    }

    .product-upsell__info {
        padding: 2rem 1.5rem;
    }

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

    .checkout-summary {
        position: static;
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .compat-list {
        columns: 1;
    }
}

@media (max-width: 640px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero {
        height: 50vh;
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .product-row__info h2 {
        font-size: 1.5rem;
    }

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

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

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }

    .cart-item__quantity,
    .cart-item__total,
    .cart-item__remove {
        grid-column: 2;
    }

    .cart-item__quantity {
        justify-self: start;
    }

    .cart-item__total {
        text-align: left;
    }

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

    .page-title {
        font-size: 1.5rem;
    }

    .newsletter h2 {
        font-size: 1.4rem;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .product-card,
    .btn,
    .cart-link,
    .nav-links a {
        transition: all var(--transition);
    }
}
