/* tsoftshop — custom styles */

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f8f9fa;
    color: #212529;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    padding: 3.5rem 0;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero p {
    opacity: 0.92;
}

/* Product card */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}
.product-img {
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
}
.product-img-placeholder {
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}
.product-desc {
    color: #6c757d;
    font-size: 0.875rem;
    min-height: 42px;
}
.product-price {
    font-weight: 700;
    color: #198754;
    font-size: 1.15rem;
}

/* Navbar cart badge */
.cart-badge {
    position: relative;
    top: -8px;
    left: -4px;
    font-size: 0.65rem;
}

/* Footer */
footer.site-footer {
    background: #212529;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: 4rem;
}
footer.site-footer a {
    color: #adb5bd;
    text-decoration: none;
}
footer.site-footer a:hover {
    color: #fff;
}

/* ============================================
   Step 3 — Product Detail Page
   ============================================ */

.product-detail-img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.product-detail-placeholder {
    width: 100%;
    height: 420px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 5rem;
    border-radius: 0.5rem;
}

.product-detail-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: #198754;
}

.product-detail-desc {
    color: #495057;
    line-height: 1.7;
    white-space: pre-line;
}

.qty-input {
    max-width: 90px;
}

/* Related product mini-cards */
.related-card .product-img,
.related-card .product-img-placeholder {
    height: 140px;
    font-size: 2rem;
}
.related-card .product-price {
    font-size: 1rem;
}

/* ============================================
   Step 4 — Shopping Cart
   ============================================ */

.cart-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.375rem;
    background: #e9ecef;
}

.cart-img-placeholder {
    width: 70px;
    height: 70px;
    background: #e9ecef;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

.cart-qty {
    max-width: 80px;
}

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

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #198754;
    border-top: 2px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}
/* ============================================
   Step 5 — Auth Forms (Login / Register)
   ============================================ */

.auth-wrapper {
    max-width: 460px;
    margin: 2rem auto;
}

.auth-card {
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

.auth-footer-link {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
}

/* ============================================
   Step 6 — Checkout Page
   ============================================ */

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

.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    background: #e9ecef;
}

.checkout-item-img-placeholder {
    width: 48px;
    height: 48px;
    background: #e9ecef;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}
.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.checkout-item-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.checkout-total {
    font-size: 1.35rem;
    font-weight: 700;
    color: #198754;
}

.checkout-section-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* ============================================
   Step 7 — Thank You Page
   ============================================ */

.success-icon {
    font-size: 4rem;
    color: #198754;
    line-height: 1;
    animation: pop-in 0.4s ease-out;
}

@keyframes pop-in {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}


/* ============================================
   TSoftShop — polished storefront refresh
   ============================================ */
:root {
    --shop-ink: #17243b;
    --shop-muted: #718096;
    --shop-blue: #2457d6;
    --shop-blue-dark: #173da4;
    --shop-sky: #eaf1ff;
    --shop-border: #e8edf5;
    --shop-surface: #ffffff;
    --shop-bg: #f7f9fd;
    --shop-radius: 18px;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-ink);
    -webkit-font-smoothing: antialiased;
}
a { transition: color .2s ease; }
.btn {
    border-radius: 10px;
    font-weight: 650;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    --bs-btn-bg: var(--shop-blue);
    --bs-btn-border-color: var(--shop-blue);
    --bs-btn-hover-bg: var(--shop-blue-dark);
    --bs-btn-hover-border-color: var(--shop-blue-dark);
    --bs-btn-active-bg: var(--shop-blue-dark);
    --bs-btn-active-border-color: var(--shop-blue-dark);
    box-shadow: 0 5px 14px rgba(36,87,214,.15);
}
.form-control, .form-select {
    border-color: #dfe6f1;
    border-radius: 10px;
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.form-control:focus, .form-select:focus {
    border-color: #8eabf5;
    box-shadow: 0 0 0 .22rem rgba(36,87,214,.12);
}
.announcement-bar {
    background: #142440;
    color: #e8efff;
    font-size: .78rem;
    letter-spacing: .025em;
    padding: .52rem 0;
}
.announcement-bar i { color: #a9c2ff; }
.site-navbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(226,232,242,.9);
    box-shadow: 0 4px 18px rgba(26,43,78,.035);
    padding: .8rem 0;
    backdrop-filter: blur(14px);
}
.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--shop-ink);
    font-size: 1.25rem;
    letter-spacing: -.035em;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, #3269e8, #2348b4);
    box-shadow: 0 6px 14px rgba(36,87,214,.22);
}
.site-navbar .navbar-nav { align-items: center; }
.site-navbar .nav-link {
    color: #53617a;
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem .85rem !important;
}
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus { color: var(--shop-blue); }
.site-navbar .navbar-toggler { border: 1px solid var(--shop-border); border-radius: 10px; }
.cart-nav-link { display: flex; align-items: center; gap: .4rem; }
.cart-label { font-size: .9rem; }
.cart-badge { background: #ef476f !important; }
.nav-register { padding: .58rem 1rem; }
.dropdown-menu {
    border: 1px solid var(--shop-border);
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(25,40,72,.12);
    padding: .45rem;
}
.dropdown-item { border-radius: 8px; padding: .55rem .75rem; }
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 350px;
    overflow: hidden;
    border-radius: 26px;
    margin: .5rem 0 1.35rem;
    padding: clamp(2rem, 5vw, 4.4rem);
    color: #fff;
    text-align: left;
    background:
        radial-gradient(circle at 80% 15%, rgba(115,164,255,.4), transparent 26%),
        radial-gradient(circle at 65% 110%, rgba(34,78,187,.8), transparent 38%),
        linear-gradient(120deg, #12284f 0%, #1d438f 55%, #3267d7 100%);
    box-shadow: 0 18px 40px rgba(29,67,143,.17);
}
.hero-content { position: relative; z-index: 2; max-width: 610px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.15rem;
    color: #d7e4ff;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .15em;
}
.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.45rem, 5vw, 4.15rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.055em;
}
.hero h1 span { color: #bcd0ff; }
.hero p {
    max-width: 480px;
    color: #e0e9ff;
    font-size: 1.03rem;
    line-height: 1.75;
    margin-bottom: 1.55rem;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.hero .btn-light {
    color: #18376f;
    border: 0;
    padding: .85rem 1.2rem;
    font-size: .92rem;
    box-shadow: 0 8px 20px rgba(7,20,50,.16);
}
.hero-note { color: #d6e3ff; font-size: .82rem; }
.hero-art {
    position: absolute;
    right: 3.5%;
    top: 50%;
    width: 340px;
    height: 300px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    opacity: .98;
}
.hero-orbit {
    position: absolute;
    border: 1px solid rgba(222,234,255,.22);
    border-radius: 50%;
}
.orbit-one { width: 280px; height: 280px; }
.orbit-two { width: 220px; height: 220px; border-style: dashed; }
.hero-bag {
    display: grid;
    place-items: center;
    width: 142px;
    height: 142px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 38px;
    color: #fff;
    font-size: 4.6rem;
    background: linear-gradient(145deg, rgba(255,255,255,.25), rgba(255,255,255,.07));
    box-shadow: 0 22px 55px rgba(4,18,50,.23), inset 0 1px 0 rgba(255,255,255,.3);
    transform: rotate(-8deg);
    backdrop-filter: blur(8px);
}
.hero-spark { position: absolute; color: #d9e5ff; font-size: 2rem; }
.spark-one { top: 18%; right: 20%; }
.spark-two { bottom: 17%; left: 16%; font-size: 2.5rem; }
.hero-floating-card {
    position: absolute;
    right: 0;
    bottom: 23px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    color: #243756;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(5,18,45,.2);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}
.hero-floating-card i { color: #ed6685; font-size: 1.25rem; }
.benefit-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 3.25rem;
    padding: 1.15rem 1.4rem;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: 0 7px 22px rgba(25,40,72,.035);
}
.benefit-item { display: flex; align-items: center; gap: .8rem; padding: .2rem .6rem; }
.benefit-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    color: var(--shop-blue);
    background: #edf3ff;
    border-radius: 13px;
    font-size: 1.2rem;
}
.benefit-item strong { display: block; color: var(--shop-ink); font-size: .87rem; }
.benefit-item small { display: block; margin-top: .15rem; color: var(--shop-muted); font-size: .76rem; }
.section-heading h2 {
    color: var(--shop-ink);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.04em;
}
.section-kicker {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--shop-blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}
.category-select { background-color: #fff; font-size: .86rem; }
.product-card {
    overflow: hidden;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border) !important;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(22,39,72,.035);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #d4e0fb !important;
    box-shadow: 0 15px 32px rgba(22,39,72,.11);
}
.product-card > a { display: block; overflow: hidden; background: #f0f3f9; }
.product-img, .product-img-placeholder {
    height: 225px;
    transition: transform .35s ease;
}
.product-img { object-fit: contain; padding: 12px; background: #f3f6fb; }
.product-card:hover .product-img { transform: scale(1.035); }
.product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9b6ca;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0f4fa, #e7edf7);
}
.product-card .card-body { padding: 1.05rem; }
.product-card .card-title { font-size: .96rem; font-weight: 700; line-height: 1.45; }
.product-card .card-title a { color: #253653 !important; }
.product-card .card-title a:hover { color: var(--shop-blue) !important; }
.product-desc {
    color: var(--shop-muted);
    font-size: .81rem;
    line-height: 1.55;
    min-height: 39px;
}
.product-price { color: var(--shop-blue); font-size: 1.08rem; font-weight: 800; }
.product-card .badge { font-size: .66rem; font-weight: 700; border-radius: 6px; }
.product-add-btn { padding: .65rem .75rem; }
.card, .auth-card { border-radius: var(--shop-radius); }
.alert { border: 0; border-radius: 12px; box-shadow: 0 5px 18px rgba(22,39,72,.05); }
.site-footer {
    background: #13213b !important;
    color: #aebbd0 !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 4.5rem !important;
}
.site-footer h6 { font-weight: 750; letter-spacing: -.01em; }
.site-footer a { color: #aebbd0 !important; transition: color .2s ease; }
.site-footer a:hover { color: #fff !important; }
.site-footer hr { opacity: .15; }
.product-detail-img { background: #f2f5fb; border: 1px solid var(--shop-border); border-radius: 16px; padding: 12px; }
.product-detail-price, .summary-total, .checkout-total { color: var(--shop-blue); }
.product-detail-placeholder { border-radius: 16px; background: #edf2fa; }
.summary-box, .checkout-summary { border: 1px solid var(--shop-border) !important; border-radius: 16px; }
.auth-card { border: 1px solid var(--shop-border); box-shadow: 0 14px 35px rgba(22,39,72,.07); }
.auth-icon { color: var(--shop-blue); }
.cart-table th { background: #f6f8fc; }
.cart-img, .cart-img-placeholder { border-radius: 10px; }
#backToTop { box-shadow: 0 8px 20px rgba(36,87,214,.3); }

@media (max-width: 991.98px) {
    .hero-art { right: -5%; opacity: .35; }
    .hero-content { max-width: 650px; }
    .site-navbar .navbar-nav { align-items: stretch; }
    .site-navbar .nav-link { padding-left: .25rem !important; }
}
@media (max-width: 767.98px) {
    .announcement-bar { font-size: .7rem; text-align: center; }
    .site-navbar { padding: .65rem 0; }
    .hero { min-height: 330px; padding: 2rem 1.4rem; border-radius: 20px; }
    .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
    .hero p { font-size: .94rem; max-width: 390px; }
    .hero-art { right: -95px; top: 55%; transform: translateY(-50%) scale(.8); opacity: .2; }
    .hero-content { max-width: 100%; }
    .hero-note { font-size: .75rem; }
    .benefit-strip { grid-template-columns: 1fr; gap: .7rem; margin-bottom: 2.4rem; padding: 1rem; }
    .benefit-item { padding: .25rem; }
    .product-img, .product-img-placeholder { height: 165px; }
    .product-card .card-body { padding: .8rem; }
    .product-card .card-title { font-size: .87rem; }
    .product-price { font-size: .98rem; }
    .product-desc { font-size: .77rem; min-height: 35px; }
    .product-card .badge { display: none; }
    .section-heading { align-items: flex-start !important; gap: .9rem; }
    .section-heading form { width: 100%; }
    .section-heading form select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Customer review stars and review cards */
#customer-reviews .text-warning { letter-spacing: 1px; }
#customer-reviews article { background: var(--bs-body-bg, #fff); }

/* TSoftShop brand assets */
.site-navbar .site-logo {
    display: block;
    width: clamp(168px, 21vw, 222px);
    height: auto;
    max-height: 56px;
    object-fit: contain;
}
.footer-logo-link { line-height: 0; }
.footer-logo {
    display: block;
    width: min(100%, 222px);
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}
@media (max-width: 575.98px) {
    .site-navbar .site-logo { width: 168px; max-height: 46px; }
    .site-navbar { padding: .55rem 0; }
}
