/* ============================================================
   Titan Performance — Main Stylesheet
   Framework: Bootstrap 5.3.3 + Custom CSS
   Font: Inter (Google Fonts)
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --titan-navy:         #0D1B2A;
    --titan-blue:         #1E3A5F;
    --titan-accent:       #E8760A;
    --titan-accent-hover: #C9650A;
    --titan-light:        #F8F9FA;
    --titan-text:         #212529;
    --titan-border:       #DEE2E6;

    --radius:    6px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);

    --transition: .2s ease;
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--titan-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================================
   3. SKIP LINK (ADA)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--titan-accent);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .2s;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--titan-border);
    min-height: 68px;
    transition: box-shadow var(--transition);
    padding-top: 0;
    padding-bottom: 0;
}

.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(13, 27, 42, .12);
}

.navbar-brand {
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0;
}

.brand-titan {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--titan-navy) !important;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-perf {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--titan-accent) !important;
    letter-spacing: -0.5px;
    line-height: 1;
}

.nav-link {
    color: var(--titan-text) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .85rem !important;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--titan-accent) !important;
    background: rgba(232, 118, 10, .06);
}

.nav-link.active {
    color: var(--titan-accent) !important;
    font-weight: 600;
}

.cart-nav-link {
    position: relative;
    font-size: 1.2rem;
    padding: .4rem .6rem !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--titan-accent);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.navbar-toggler {
    border: 1px solid var(--titan-border);
    padding: .3rem .55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230D1B2A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-account-link {
    font-size: .88rem;
    color: var(--titan-text) !important;
    font-weight: 500;
}

.nav-account-link i {
    color: var(--titan-navy);
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--titan-navy) 0%, var(--titan-blue) 60%, #1a4a7a 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, .025) 0px,
        rgba(255, 255, 255, .025) 1px,
        transparent 1px,
        transparent 28px
    );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(13, 27, 42, .15));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero .hero-headline {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 540px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 1.75rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.hero-badge {
    background: rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid rgba(255, 255, 255, .2);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.hero-img-wrap {
    position: relative;
    z-index: 1;
}

.hero-img-wrap img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
}

/* ============================================================
   6. TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--titan-light);
    border-top: 1px solid var(--titan-border);
    border-bottom: 1px solid var(--titan-border);
    padding: .5rem 0;
}

.trust-item {
    text-align: center;
    padding: 1rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.trust-item i {
    color: var(--titan-accent);
    font-size: 1.4rem;
}

.trust-item strong {
    font-size: .85rem;
    font-weight: 700;
    color: var(--titan-navy);
    display: block;
    line-height: 1.3;
}

.trust-item span {
    font-size: .78rem;
    color: #6c757d;
    line-height: 1.3;
}

/* ============================================================
   7. SECTION HEADINGS & UTILITIES
   ============================================================ */

/* ─── Extended spacing scale (Bootstrap 5 stops at py-5 / 3rem) ─────────── */
.py-6  { padding-top: 5rem   !important; padding-bottom: 5rem   !important; }
.py-7  { padding-top: 6.5rem !important; padding-bottom: 6.5rem !important; }
.pt-6  { padding-top: 5rem   !important; }
.pb-6  { padding-bottom: 5rem !important; }
.mt-6  { margin-top: 5rem    !important; }
.mb-6  { margin-bottom: 5rem !important; }

@media (max-width: 767.98px) {
    .py-6  { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    .py-7  { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--titan-navy);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--titan-accent);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 600px;
}

.text-accent {
    color: var(--titan-accent) !important;
}

.text-navy {
    color: var(--titan-navy) !important;
}

.bg-navy {
    background: var(--titan-navy) !important;
}

.bg-titan-light {
    background: var(--titan-light) !important;
}

/* ============================================================
   8. PRODUCT CARDS
   ============================================================ */
.product-card {
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    border-color: var(--titan-accent);
    color: inherit;
}

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: var(--titan-light);
    padding: 1rem;
    transition: transform .3s ease;
    display: block;
}

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

.product-card-badges {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.product-card-title {
    font-weight: 700;
    color: var(--titan-navy);
    font-size: 1rem;
    margin-bottom: .4rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    font-size: .8rem;
    color: #6c757d;
    margin-bottom: .5rem;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--titan-accent);
    line-height: 1;
}

.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
}

.price-savings {
    font-size: .75rem;
    color: #198754;
    font-weight: 600;
    background: #d1e7dd;
    padding: 1px 6px;
    border-radius: 3px;
}

.product-card-footer {
    margin-top: auto;
}

.badge-category {
    background: var(--titan-navy);
    color: #fff;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    display: inline-block;
}

.badge-stock-in {
    background: #d4edda;
    color: #155724;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.badge-stock-out {
    background: #f8d7da;
    color: #721c24;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.badge-new {
    background: var(--titan-accent);
    color: #fff;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge-sale {
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn-titan {
    background: var(--titan-accent);
    color: #fff;
    border-color: var(--titan-accent);
    font-weight: 600;
    padding: .6rem 1.4rem;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    line-height: 1.5;
    cursor: pointer;
}

.btn-titan:hover,
.btn-titan:focus {
    background: var(--titan-accent-hover);
    border-color: var(--titan-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 118, 10, .3);
    outline: none;
}

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

.btn-titan:disabled,
.btn-titan.disabled {
    opacity: .65;
    transform: none;
    cursor: not-allowed;
}

.btn-titan-outline {
    background: transparent;
    border: 2px solid var(--titan-accent);
    color: var(--titan-accent);
    font-weight: 600;
    padding: .55rem 1.35rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
    cursor: pointer;
}

.btn-titan-outline:hover,
.btn-titan-outline:focus {
    background: var(--titan-accent);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.btn-navy {
    background: var(--titan-navy);
    color: #fff;
    border-color: var(--titan-navy);
    font-weight: 600;
    padding: .6rem 1.4rem;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}

.btn-navy:hover,
.btn-navy:focus {
    background: var(--titan-blue);
    border-color: var(--titan-blue);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.btn-navy:disabled {
    opacity: .65;
    transform: none;
}

.btn-sm.btn-titan,
.btn-sm.btn-titan-outline,
.btn-sm.btn-navy {
    padding: .35rem .85rem;
    font-size: .85rem;
}

.btn-lg.btn-titan,
.btn-lg.btn-titan-outline,
.btn-lg.btn-navy {
    padding: .75rem 2rem;
    font-size: 1.05rem;
}

/* ============================================================
   10. QUANTITY CONTROL
   ============================================================ */
.qty-control {
    display: flex;
    border: 1px solid var(--titan-border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}

.qty-control button,
.qty-minus,
.qty-plus {
    border: none;
    background: var(--titan-light);
    width: 36px;
    height: 36px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--titan-navy);
    transition: background var(--transition);
    flex-shrink: 0;
}

.qty-control button:hover,
.qty-minus:hover,
.qty-plus:hover {
    background: var(--titan-border);
}

.qty-control button:active,
.qty-minus:active,
.qty-plus:active {
    background: #cbd3da;
}

.qty-control input,
.qty-control-input,
.qty-input {
    border: none;
    border-left: 1px solid var(--titan-border);
    border-right: 1px solid var(--titan-border);
    width: 52px;
    text-align: center;
    font-weight: 600;
    font-size: .95rem;
    color: var(--titan-navy);
    background: #fff;
    -moz-appearance: textfield;
    height: 36px;
}

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

.qty-control input:focus,
.qty-control-input:focus,
.qty-input:focus {
    outline: none;
    background: #fffdf9;
}

/* ============================================================
   11. SHOP / FILTER SIDEBAR
   ============================================================ */
.shop-filter-card {
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: #fff;
    margin-bottom: 1.25rem;
}

.shop-filter-title {
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--titan-navy);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--titan-border);
}

.filter-check .form-check-label {
    font-size: .9rem;
    cursor: pointer;
    color: var(--titan-text);
}

.filter-check .form-check-input:checked {
    background-color: var(--titan-accent);
    border-color: var(--titan-accent);
}

.filter-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .2);
    border-color: var(--titan-accent);
}

.shop-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    background: var(--titan-light);
    border: 1px solid var(--titan-border);
    border-radius: var(--radius);
}

.shop-results-count {
    font-size: .88rem;
    color: #6c757d;
    font-weight: 500;
}

/* ============================================================
   12. PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-gallery {
    position: sticky;
    top: 90px;
}

.product-main-img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: var(--titan-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--titan-border);
}

.product-thumb-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid var(--titan-border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--titan-light);
    padding: .25rem;
    transition: border-color var(--transition);
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--titan-accent);
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--titan-navy);
    line-height: 1.2;
    margin-bottom: .5rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--titan-accent);
}

.product-detail-sku {
    font-size: .82rem;
    color: #6c757d;
}

.product-variants label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--titan-navy);
    margin-bottom: .35rem;
    display: block;
}

.variant-btn {
    border: 2px solid var(--titan-border);
    background: #fff;
    border-radius: var(--radius);
    padding: .35rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--titan-text);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    margin-right: .35rem;
    margin-bottom: .35rem;
}

.variant-btn:hover,
.variant-btn.active {
    border-color: var(--titan-accent);
    background: rgba(232, 118, 10, .08);
    color: var(--titan-accent);
}

.variant-btn.out-of-stock {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-add-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}

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

.product-features-list li {
    padding: .35rem 0;
    font-size: .92rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    border-bottom: 1px solid var(--titan-border);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list li i {
    color: var(--titan-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   13. CART PAGE
   ============================================================ */
.cart-table th {
    border-bottom: 2px solid var(--titan-navy);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--titan-navy);
    padding: .85rem .5rem;
    white-space: nowrap;
}

.cart-table td {
    vertical-align: middle;
    padding: .75rem .5rem;
    border-color: var(--titan-border);
}

.cart-table tbody tr {
    transition: background var(--transition);
}

.cart-table tbody tr:hover {
    background: rgba(248, 249, 250, .6);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--titan-light);
    border: 1px solid var(--titan-border);
    padding: .25rem;
    flex-shrink: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--titan-navy);
    font-size: .95rem;
}

.cart-item-meta {
    font-size: .8rem;
    color: #6c757d;
}

.cart-summary-card {
    position: sticky;
    top: 90px;
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: #fff;
}

.cart-summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--titan-border);
}

.cart-summary-card .summary-row:last-of-type {
    border-bottom: none;
}

.cart-summary-card .summary-total {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--titan-navy);
    padding: .75rem 0 0;
    display: flex;
    justify-content: space-between;
}

.cart-summary-card .summary-total .total-price {
    color: var(--titan-accent);
    font-size: 1.4rem;
}

.cart-promo-row {
    display: flex;
    gap: .5rem;
}

.cart-promo-row input {
    border-radius: var(--radius);
    border: 1px solid var(--titan-border);
    padding: .4rem .75rem;
    font-size: .9rem;
    flex: 1;
}

.cart-promo-row input:focus {
    outline: none;
    border-color: var(--titan-accent);
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .15);
}

.cart-empty {
    text-align: center;
    padding: 5rem 1rem;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--titan-border);
    margin-bottom: 1rem;
    display: block;
}

.cart-empty h3 {
    color: var(--titan-navy);
    font-weight: 700;
    margin-bottom: .75rem;
}

.cart-empty p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.line-total {
    font-weight: 700;
    color: var(--titan-navy);
}

.btn-cart-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: .25rem .4rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    font-size: .95rem;
}

.btn-cart-remove:hover {
    background: #f8d7da;
    color: #842029;
}

/* ============================================================
   14. CHECKOUT
   ============================================================ */
.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--titan-border);
}

.checkout-step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: .85rem;
    font-weight: 600;
    padding: .85rem .5rem;
    color: #6c757d;
    background: var(--titan-light);
    border-right: 1px solid var(--titan-border);
    transition: color var(--transition), background var(--transition);
}

.checkout-step:last-child {
    border-right: none;
}

.checkout-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--titan-border);
    color: #6c757d;
    font-size: .78rem;
    font-weight: 700;
    margin: 0 auto .35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-step.active {
    color: var(--titan-accent);
    background: rgba(232, 118, 10, .05);
}

.checkout-step.active .step-num {
    background: var(--titan-accent);
    color: #fff;
}

.checkout-step.done {
    color: var(--titan-navy);
}

.checkout-step.done .step-num {
    background: var(--titan-navy);
    color: #fff;
}

.checkout-section {
    background: #fff;
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.checkout-section h5 {
    font-weight: 700;
    color: var(--titan-navy);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--titan-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.checkout-section h5 i {
    color: var(--titan-accent);
}

.checkout-section .form-label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--titan-navy);
    margin-bottom: .35rem;
}

.checkout-section .form-control,
.checkout-section .form-select {
    border-color: var(--titan-border);
    border-radius: var(--radius);
    font-size: .95rem;
    padding: .5rem .75rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-section .form-control:focus,
.checkout-section .form-select:focus {
    border-color: var(--titan-accent);
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .15);
    outline: none;
}

.payment-methods {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.payment-method-btn {
    border: 2px solid var(--titan-border);
    border-radius: var(--radius);
    padding: .5rem 1rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    background: #fff;
    font-size: .9rem;
    font-weight: 500;
    color: var(--titan-text);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.payment-method-btn.active,
.payment-method-btn:hover {
    border-color: var(--titan-accent);
    background: rgba(232, 118, 10, .05);
    color: var(--titan-navy);
}

.payment-security-note {
    font-size: .8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
}

.payment-security-note i {
    color: #198754;
}

.order-summary-checkout {
    position: sticky;
    top: 90px;
}

.checkout-order-card {
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.checkout-order-card .card-header {
    background: var(--titan-navy);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: .85rem 1.25rem;
    border: none;
}

.checkout-order-card .card-body {
    padding: 1.25rem;
}

.checkout-item-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--titan-border);
    font-size: .9rem;
}

.checkout-item-row:last-of-type {
    border-bottom: none;
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--titan-light);
    border-radius: var(--radius);
    border: 1px solid var(--titan-border);
    padding: .25rem;
    flex-shrink: 0;
}

.checkout-item-name {
    flex: 1;
    font-weight: 600;
    color: var(--titan-navy);
    font-size: .85rem;
    line-height: 1.35;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--titan-navy);
    white-space: nowrap;
}

.checkout-totals {
    margin-top: .75rem;
}

.checkout-totals .total-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: .3rem 0;
    color: var(--titan-text);
}

.checkout-totals .total-row.grand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--titan-navy);
    border-top: 2px solid var(--titan-navy);
    margin-top: .4rem;
    padding-top: .6rem;
}

.checkout-totals .grand .grand-price {
    color: var(--titan-accent);
}

/* ============================================================
   15. CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--titan-navy) 0%, var(--titan-blue) 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, .02) 0px,
        rgba(255, 255, 255, .02) 1px,
        transparent 1px,
        transparent 32px
    );
}

.cta-band-inner {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, .8);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ============================================================
   16. SUBSCRIPTION BAND
   ============================================================ */
.sub-band {
    background: var(--titan-navy);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.sub-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(30, 58, 95, .8) 0%, transparent 70%);
    pointer-events: none;
}

.sub-band-inner {
    position: relative;
    z-index: 1;
}

.sub-band h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}

.sub-band p {
    color: rgba(255, 255, 255, .75);
}

.sub-tier-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.sub-tier-card:hover {
    background: rgba(232, 118, 10, .2);
    border-color: var(--titan-accent);
    transform: translateY(-2px);
}

.sub-tier-card.recommended {
    border-color: var(--titan-accent);
    background: rgba(232, 118, 10, .12);
}

.sub-tier-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .4rem;
}

.sub-tier-savings {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--titan-accent);
    margin-bottom: .25rem;
    display: block;
}

.sub-tier-desc {
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
}

.sub-email-form {
    display: flex;
    gap: .5rem;
    max-width: 440px;
    flex-wrap: wrap;
}

.sub-email-form input {
    flex: 1;
    min-width: 200px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    padding: .55rem 1rem;
    font-size: .95rem;
}

.sub-email-form input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.sub-email-form input:focus {
    outline: none;
    border-color: var(--titan-accent);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .25);
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
    background: var(--titan-navy);
    color: rgba(255, 255, 255, .7);
    padding-top: 3.5rem;
}

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

.footer-brand .brand-titan,
.footer-brand .brand-perf {
    color: #fff;
}

.footer-tagline {
    color: rgba(255, 255, 255, .55);
    font-size: .88rem;
    line-height: 1.6;
    max-width: 280px;
    margin-top: .5rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: .5rem;
}

.footer-link {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .9rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.footer-link:hover {
    color: var(--titan-accent);
    text-decoration: none;
}

.footer-text {
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: .75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: .6rem;
}

.footer-contact-item i {
    color: var(--titan-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--titan-accent);
    color: #fff;
    text-decoration: none;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.trust-badge {
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 3px;
    padding: 3px 8px;
}

.trust-badge i {
    color: rgba(255, 255, 255, .4);
    font-size: .8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .4);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--titan-accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .08);
}

/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--titan-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.back-to-top:hover {
    background: var(--titan-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .35), 0 2px 12px rgba(0, 0, 0, .2);
}

/* ============================================================
   19. FLASH / ALERT MESSAGES
   ============================================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1055;
    max-width: 380px;
    width: calc(100% - 2rem);
}

.flash-alert {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    font-size: .9rem;
    font-weight: 500;
    animation: slideInRight .3s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   20. CART TOAST
   ============================================================ */
.cart-toast {
    border: none;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15) !important;
    overflow: hidden;
}

.cart-toast .toast-header {
    background: var(--titan-navy);
    color: #fff;
    border: none;
    padding: .6rem 1rem;
}

.cart-toast .toast-header .btn-close {
    filter: invert(1);
}

.cart-toast .toast-body {
    font-size: .92rem;
    font-weight: 500;
    padding: .75rem 1rem;
}

/* ============================================================
   21. FORMS — GLOBAL
   ============================================================ */
.form-control,
.form-select {
    border-color: var(--titan-border);
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--titan-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--titan-accent);
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .15);
    color: var(--titan-text);
}

.form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--titan-navy);
    margin-bottom: .35rem;
}

.form-check-input:checked {
    background-color: var(--titan-accent);
    border-color: var(--titan-accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(232, 118, 10, .2);
    border-color: var(--titan-accent);
}

.invalid-feedback {
    font-size: .8rem;
}

/* ============================================================
   22. PAGE HEADERS
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--titan-navy) 0%, var(--titan-blue) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, .02) 0px,
        rgba(255, 255, 255, .02) 1px,
        transparent 1px,
        transparent 28px
    );
}

.page-header-inner {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .35rem;
}

.breadcrumb-item,
.breadcrumb-item a {
    font-size: .85rem;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, .9);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .4);
}

/* ============================================================
   23. ORDER CONFIRMATION
   ============================================================ */
.order-confirm-icon {
    width: 80px;
    height: 80px;
    background: #d1e7dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.order-confirm-icon i {
    font-size: 2.25rem;
    color: #198754;
}

.order-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--titan-navy);
}

.order-detail-card {
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-detail-card .card-header {
    background: var(--titan-light);
    border-bottom: 1px solid var(--titan-border);
    font-weight: 700;
    color: var(--titan-navy);
    font-size: .88rem;
    padding: .75rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ============================================================
   24. ABOUT / CONTENT PAGES
   ============================================================ */
.about-stat {
    text-align: center;
    padding: 1.5rem;
}

.about-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--titan-accent);
    line-height: 1;
    margin-bottom: .25rem;
    display: block;
}

.about-stat-label {
    font-size: .88rem;
    color: #6c757d;
    font-weight: 500;
}

.team-card {
    text-align: center;
    padding: 1.25rem;
}

.team-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto .75rem;
    border: 3px solid var(--titan-border);
}

.team-card h5 {
    font-weight: 700;
    color: var(--titan-navy);
    margin-bottom: .15rem;
    font-size: 1rem;
}

.team-card p {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ============================================================
   25. CONTACT PAGE
   ============================================================ */
.contact-info-card {
    background: var(--titan-navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-item i {
    color: var(--titan-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item strong {
    font-weight: 600;
    color: #fff;
    display: block;
    font-size: .88rem;
    margin-bottom: .15rem;
}

.contact-info-item span {
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
}

.contact-form-card {
    border: 1px solid var(--titan-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: #fff;
}

/* ============================================================
   26. LOADING STATES
   ============================================================ */
.spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.btn .spinner-border-sm {
    width: .8rem;
    height: .8rem;
    border-width: 2px;
}

/* ============================================================
   27. PAGINATION
   ============================================================ */
.page-link {
    color: var(--titan-navy);
    border-color: var(--titan-border);
    font-weight: 500;
    font-size: .9rem;
}

.page-link:hover,
.page-link:focus {
    color: var(--titan-accent);
    border-color: var(--titan-accent);
    box-shadow: none;
    background: rgba(232, 118, 10, .06);
}

.page-item.active .page-link {
    background: var(--titan-accent);
    border-color: var(--titan-accent);
    color: #fff;
}

/* ============================================================
   28. STAR RATINGS
   ============================================================ */
.star-rating {
    color: #ffc107;
    font-size: .9rem;
    letter-spacing: 1px;
}

.star-rating.sm {
    font-size: .75rem;
}

.review-count {
    font-size: .82rem;
    color: #6c757d;
    font-weight: 400;
}

/* ============================================================
   29. PRODUCT TABS (detail page)
   ============================================================ */
.product-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6c757d;
    font-weight: 600;
    padding: .75rem 1.25rem;
    font-size: .9rem;
    background: none;
}

.product-tabs .nav-link.active {
    color: var(--titan-accent);
    border-bottom-color: var(--titan-accent);
    background: none;
}

.product-tabs .nav-link:hover:not(.active) {
    color: var(--titan-navy);
    border-bottom-color: var(--titan-border);
    background: none;
}

.product-tab-content {
    border: 1px solid var(--titan-border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.5rem;
    background: #fff;
}

/* ============================================================
   30. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .product-card-img {
        height: 220px;
    }

    .product-detail-gallery {
        position: static;
    }

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

    .cta-band h2 {
        font-size: 1.7rem;
        text-align: center;
    }

    .cta-band .hero-cta-group {
        justify-content: center;
    }

    .sub-band h2 {
        font-size: 1.6rem;
    }

    .footer {
        padding-top: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 380px;
    }

    .hero h1,
    .hero .hero-headline {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cart-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-table {
        min-width: 600px;
    }

    .cart-summary-card {
        position: static;
    }

    .checkout-step {
        font-size: .75rem;
        padding: .7rem .3rem;
    }

    .checkout-step .step-num {
        width: 20px;
        height: 20px;
        font-size: .7rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

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

    .sub-email-form {
        flex-direction: column;
    }

    .trust-bar .row > div {
        border-bottom: 1px solid var(--titan-border);
    }

    .trust-bar .row > div:last-child {
        border-bottom: none;
    }

    .product-add-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-add-actions .btn-titan,
    .product-add-actions .btn-navy {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-card-img {
        height: 180px;
    }

    .sub-tier-card {
        width: 100%;
    }

    .hero {
        min-height: 320px;
    }

    .hero-badges {
        display: none;
    }

    .product-detail-title {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.6rem;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: .9rem;
    }

    .cart-item-img {
        width: 52px;
        height: 52px;
    }

    .checkout-section {
        padding: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer-tagline,
    .footer-text {
        max-width: none;
    }

    .trust-badges {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-heading {
        margin-top: 1.5rem;
    }

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

    .sub-band h2 {
        font-size: 1.4rem;
    }

    .cta-band h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   31. PRINT
   ============================================================ */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .cart-summary-card,
    .cta-band,
    .sub-band {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .product-card {
        break-inside: avoid;
    }
}

/* ============================================================
   32. ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--titan-accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
