/* =========================
   Go Mobile Hub - Production CSS
   Fully cleaned, organized, responsive
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0F2E59;
    --blue: #2563EB;
    --cyan: #06b6d4;
    --orange: #ff6b1a;
    --orange-light: #ff9d18;
    --text: #334155;
    --text-light: #64748B;
    --border: #e7e2dc;
    --off-white: #fbfaf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
    /* space for fixed top-bar (42px) + navbar (90px) */
    padding-top: 132px;
}

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

a {
    transition: 0.25s ease;
}

/* =========================
   Header
========================= */
.header {
    width: 100%;
}

/* Top contact bar – fixed at very top */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    padding: 10px 5px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    flex-wrap: wrap;
    transition: transform 0.3s ease, opacity 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

.contact-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.email,
.phone {
    color: #fff;
}

.whatsapp {
    color: #25D366;
}

.contact-link i {
    font-size: 16px;
    margin-right: 4px;
}

.contact-link:hover {
    opacity: 0.85;
}

/* Hide top-bar on scroll */
.top-bar.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

/* =========================
   Navigation
========================= */
.navbar {
    position: fixed;
    left: 0;
    top: 42px; /* sits just below top-bar */
    width: 100%;
    background: #d9e2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 90px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: top 0.3s ease, height 0.3s ease;
}

/* When sticky (scrolled), navbar moves to top of viewport */
.navbar.sticky {
    top: 0;
    height: 75px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 80px;
    transition: height 0.3s ease, transform 0.3s ease;
}

.navbar.sticky .logo {
    height: 65px;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    transform: translateY(-2px);
    color: #2563EB;
}

.dropdown,
.login-btn {
    display: flex;
    align-items: center;
}

.login-btn {
    height: 42px;
    padding: 0 20px;
    background: #2563EB;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1;
    justify-content: center;
}

.menu-toggle {
    display: none;
    border: none;
    outline: none;
    background: transparent;
    font-size: 28px;
    color: #0F172A;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a i {
    width: 20px;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #007bff;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* =========================
   Hero (Homepage)
========================= */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 65px;
    padding: 40px 30px 40px;
}

.hero-content {
    flex: 1 1 350px;
}

.hero-badge {
    background: #d9e2f5;
    color: var(--blue);
    border: 1px solid rgba(37, 99, 235, 0.12);
    font-weight: 650;
    font-size: 0.88rem;
    padding: 8px 17px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 22px;
}

.hero-content h1 {
    font-size: 3.15rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgb(9, 120, 199);
    background-clip: text;
}

.hero-desc {
    font-size: 1.16rem;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 45px;
    margin: 42px 0 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-item::before {
    content: "";
    width: 4px;
    height: 34px;
    background: linear-gradient(180deg, var(--blue), var(--cyan));
    border-radius: 10px;
    position: absolute;
    left: -13px;
    top: 4px;
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--navy);
}

.stat-label {
    color: #64748B;
    font-size: 0.92rem;
}

.gst-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #475569;
    flex-wrap: wrap;
}

.gst-badge i {
    color: #22C55E;
}

.btn-primary {
    background: #1f3a7a;
    color: white;
    border: none;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 8px 18px rgba(26, 57, 133, 0.15);
    transition: all 0.25s;
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-visual {
    flex: 1 1 300px;
    background-image: url('images/paid.png');
    height: 300px;
    border-radius: 48px;
    padding: 30px 20px;
    text-align: left;
    box-shadow: 0 25px 40px -10px rgba(28, 52, 99, 0.25);
}

.hero-visual p {
    font-weight: 600;
    color: white;
    font-size: 1.4rem;
}

/* =========================
   Corporate Buyback Steps (Homepage)
========================= */
.corporate-buyback {
    padding: 60px 20px;
    text-align: center;
    background: #f8fafc;
}

.section-badge {
    display: inline-block;
    background: #d9e2f5;
    color: black;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    padding: 20px;
}

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9e2f5;
    border-radius: 50%;
}

.step-icon i {
    font-size: 40px;
    color: #2563EB;
}

.step-card h3 {
    font-size: 28px;
    color: #090909;
    margin-bottom: 16px;
}

.step-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #64748b;
    max-width: 320px;
    margin: 0 auto;
}

/* Why Choose (Homepage) */
.why-gmh {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 8%;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: #fff;
}

.why-left {
    position: relative;
}

.why-left::before {
    content: "";
    position: absolute;
    left: 35px;
    top: 40px;
    width: 2px;
    height: 75%;
    background: rgba(255, 255, 255, 0.15);
}

.why-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.why-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563EB;
}

.why-icon i {
    font-size: 30px;
    color: #fff;
}

.why-content h3 {
    font-size: 24px;
}

.why-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-image-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-1 {
    position: absolute;
    font-size: 220px;
    color: rgba(255, 255, 255, 0.12);
    transform: rotate(-25deg);
}

.phone-2 {
    position: absolute;
    font-size: 190px;
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(20deg);
}

.why-image-box h2 {
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
}

/* =========================
   Services
========================= */
.services-section {
    padding: 90px 8%;
    background: #F8FAFC;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    color: #0F172A;
    margin-bottom: 0px;
}

.section-header p {
    color: #64748B;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
}

.service-card.primary {
    background: #2563EB;
    color: #fff;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    margin-bottom: 20px;
}

.primary .service-icon {
    background: rgba(255, 255, 255, 0.15);
}

.service-icon i {
    font-size: 30px;
    color: #2563EB;
}

.primary .service-icon i {
    color: #fff;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    line-height: 1.7;
    color: #64748B;
}

.primary p {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   About
========================= */
.about-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 70px 8%;
    background: #F8FAFC;
}

.about-content h2 {
    font-size: 48px;
    color: #2563EB;
    margin-bottom: 16px;
}

.line {
    width: 120px;
    height: 4px;
    background: #2563EB;
    margin-bottom: 30px;
    border-radius: 10px;
}

.about-content p {
    color: #64748B;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-image {
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 50px;
    transition: 0.3s;
}

.circle-1 { background: #2563EB; top: 20px; left: 60px; }
.circle-2 { background: #1E40AF; right: 40px; top: 110px; }
.circle-3 { background: #0F172A; bottom: 20px; left: 140px; }

.about-circle:hover {
    transform: scale(1.08);
}

/* =========================
   Device Pages (Unified)
========================= */
.iphone-models-page,
.Android-brand-page,
.laptop-brand-page,
.tablet-brand-page {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto 60px;
}

.iphone-page-header,
.Android-page-header,
.laptop-page-header,
.tablet-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.iphone-page-header h1,
.Android-page-header h1,
.laptop-page-header h1,
.tablet-page-header h1 {
    font-size: 36px;
    color: #0F172A;
}

.iphone-search-box,
.Android-search-box,
.laptop-search-box,
.tablet-search-box {
    width: 320px;
    height: 52px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 16px;
}

.iphone-search-box input,
.Android-search-box input,
.laptop-search-box input,
.tablet-search-box input {
    width: 100%;
    border: none;
    outline: none;
    margin-left: 10px;
    font-size: 15px;
}

.iphone-search-box i,
.Android-search-box i,
.laptop-search-box i,
.tablet-search-box i {
    color: #64748B;
}

/* Unified Device Grid */
.iphone-models-grid,
.Android-models-grid,
.laptop-models-grid,
.tablet-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 22px;
}

/* Unified Card */
.iphone-model-card,
.brand-card,
.laptop-card,
.tablet-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 14px;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
}

.brand-card a{
    text-decoration: none;
}

.iphone-model-card:hover,
.brand-card:hover,
.laptop-card:hover,
.tablet-card:hover {
    border-color: #2563EB;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

/* Breadcrumb */

.iphone-breadcrumb,
.Android-breadcrumb,
.laptop-breadcrumb,
.tablet-breadcrumb {
    color: #64748B;
    margin-bottom: 8px;
    font-size: 14px;
}

.breadcrumb a,
.iphone-breadcrumb a,
.laptop-breadcrumb a,
.tablet-breadcrumb a{
    text-decoration: none;
}

.breadcrumb {
    color: #64748B;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-nav,
.iphone-breadcrumb,
.Android-breadcrumb,
.laptop-breadcrumb,
.tablet-breadcrumb,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748B;
}

.breadcrumb-nav a,
.iphone-breadcrumb a,
.Android-breadcrumb a,
.laptop-breadcrumb a,
.tablet-breadcrumb a,
.breadcrumb a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.breadcrumb-nav a:hover,
.iphone-breadcrumb a:hover,
.Android-breadcrumb a:hover,
.laptop-breadcrumb a:hover,
.tablet-breadcrumb a:hover,
.breadcrumb a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.breadcrumb-nav span,
.iphone-breadcrumb span,
.Android-breadcrumb span,
.laptop-breadcrumb span,
.tablet-breadcrumb span,
.breadcrumb span {
    color: #94A3B8;
}

.breadcrumb-nav .current,
.iphone-breadcrumb .current,
.Android-breadcrumb .current,
.laptop-breadcrumb .current,
.tablet-breadcrumb .current,
.breadcrumb .current {
    color: #0F172A;
    font-weight: 600;
    pointer-events: none;
}


/* Image Container – forces equal size & centering */
.device-img-wrap {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.device-img-wrap img,
.iphone-model-card img,
.brand-card img,
.laptop-card img,
.tablet-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.iphone-model-card span,
.brand-card span,
.laptop-card span,
.tablet-card span {
    display: block;
    color: #0F172A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================
   Sell Hero (checkdevice)
========================= */
.sell-hero {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto 60px;
    background: #fff;
    border-radius: 25px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.sell-left h1 {
    font-size: 42px;
    color: #0F172A;
    margin-bottom: 28px;
    line-height: 1.2;
}

.features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.features span {
    font-size: 16px;
}

.features i {
    color: #22C55E;
    margin-right: 6px;
}

.search-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    margin-bottom: 35px;
}

.search-box input {
    border: none;
    outline: none;
    background: none;
    width: 100%;
    font-size: 15px;
}

.search-box i {
    color: #64748B;
    margin-right: 10px;
}

.brand-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0F172A;
}

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

.brand-grid .brand-card {
    min-height: 120px;
    padding: 20px 10px;
}

.brand-grid .brand-card i {
    font-size: 36px;
    color: #2563EB;
    margin-bottom: 8px;
}

.brand-grid .brand-card p {
    font-weight: 600;
    margin: 0;
    color: #0F172A;
}

.sell-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-bg {
    width: 360px;
    height: 360px;
    background: #22C55E;
    border-radius: 50%;
    position: absolute;
    opacity: 0.15;
}

.sell-right img {
    width: 380px;
    position: relative;
    z-index: 2;
}

/* =========================
   Partner Page
========================= */
.partner-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 28px 40px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 30px;
}

.partner-hero-copy h1 {
    font-size: 38px;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 20px;
}

.partner-hero-copy p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.orange-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 7px;
    padding: 12px 22px;
    margin-top: 8px;
    transition: 0.25s;
}

.orange-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
}

.partner-btn a {
    margin: 0px 20px 0px 0px;
}

.partner-hero-image {
    display: flex;
    justify-content: center;
}

.partner-hero-image img {
    width: min(100%, 580px);
    max-height: 440px;
    object-fit: contain;
    border-radius: 42px;
}

.benefits-section {
    padding: 40px 28px 50px;
}

.partner-heading {
    text-align: center;
    margin-bottom: 30px;
}

.partner-heading h2 {
    color: var(--navy);
    font-size: 28px;
}

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

.benefit-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 250px;
    padding: 24px 20px;
    text-align: center;
    background: #fff;
}

.benefit-icon {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: blue;
    font-size: 48px;
    margin-bottom: 10px;
}

.benefit-card h3 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.works-section {
    padding: 20px 28px 60px;
}

.work-row {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.work-copy h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 12px;
}

.work-copy p {
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
}

.work-image {
    display: flex;
    justify-content: center;
}

.work-image img {
    width: 100%;
    max-width: 480px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 42px;
}

.work-row.reverse .work-image {
    order: -1;
}

.partner-cta {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 32px;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.partner-cta h2 {
    color: #fff;
    font-size: 22px;
}

.cta-btn {
    border: 1px solid rgb(6, 123, 123);
    color: rgb(164, 164, 241);
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s;
}

.cta-btn:hover {
    background: white;
    color: rgb(64, 64, 245);
}

/* =========================
   Corporate Buyback Page
========================= */
.buyback-hero {
    min-height: 500px;
    padding: 40px 30px 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-copy h1 {
    color: var(--navy);
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-copy p {
    max-width: 560px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.submit-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    box-shadow: 0 8px 20px rgba(255, 103, 24, 0.12);
    cursor: pointer;
    transition: 0.25s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

.hero-head {
    -webkit-text-fill-color: rgb(9, 120, 199);
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
}

.hero-image-wrap img {
    width: min(100%, 460px);
    object-fit: contain;
    border-radius: 42px;
}

.buyback-form-section{
    background:#F8FAFC;
    padding:0px;
}

.buyback-form-container{
    max-width:1100px;
    margin:auto;
    background:#fff;
    padding: 40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.form-header{
    text-align:center;
    margin-bottom:40px;
}

.form-badge{
    display:inline-block;
    background:#DBEAFE;
    color:#2563EB;
    padding:8px 18px;
    border-radius:30px;
    font-weight:600;
    margin-bottom:15px;
}

.form-header h2{
    font-size:42px;
    color:#0F172A;
    margin-bottom:15px;
}

.form-header p{
    color:#64748B;
    max-width:650px;
    margin:auto;
}

.buyback-form h3{
    margin:35px 0 20px;
    color:#0F172A;
}

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

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:8px;
    font-weight:600;
    color:#334155;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:14px;
    border:1px solid #CBD5E1;
    border-radius:10px;
    outline:none;
    font-size:15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563EB;
}

.upload-box{
    border:2px dashed #2563EB;
    border-radius:15px;
    padding:40px;
    text-align:center;
    background:#EFF6FF;
}

.upload-box i{
    font-size:45px;
    color:#2563EB;
    margin-bottom:15px;
}

.upload-box p{
    margin-bottom:15px;
}

.checkbox-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.checkbox-grid label{
    display:flex;
    gap:10px;
    align-items:center;
}

.full-width{
    margin-top:25px;
}

.submit-btn{
    margin-top:30px;
    width:100%;
    padding:18px;
    border:none;
    background:#2563EB;
    color:#fff;
    border-radius:12px;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.submit-btn:hover{
    background:#1D4ED8;
    transform:translateY(-2px);
}

/* Mobile Responsive */

@media(max-width:768px){

    .buyback-form-container{
        padding:25px;
    }

    .form-header h2{
        font-size:30px;
    }

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

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

}

.why-section {
    padding: 50px 30px;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    color: var(--off-white);
    font-size: 26px;
    margin-bottom: 8px;
}

.section-heading p {
    color: white;
    font-size: 14px;
}

.why-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    border: 1px solid #e8e4df;
    border-radius: 10px;
    padding: 24px 20px;
    background: #fff;
    min-height: 260px;
}

.why-card .why-icon {
    width: 48px;
    height: 48px;
    color: #ff8a00;
    font-size: 28px;
    margin-bottom: 12px;
    background: none;
}

.why-card h3 {
    color: #0f2e59;
    font-size: 16px;
    margin-bottom: 8px;
}

.why-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.why-card ul {
    list-style: none;
}

.why-card li {
    font-size: 12px;
    color: #374151;
    margin-bottom: 6px;
}

.why-card li::before {
    content: '✓';
    color: #ff731b;
    margin-right: 8px;
    font-weight: 700;
}

.process-section {
    background: white;
    padding: 50px 30px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: center;
}

.process-copy h2 {
    color: #0f2e59;
    font-size: 26px;
    margin-bottom: 14px;
}

.process-copy p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #1bb3ff;
    color: linear-gradient(135deg, #0F172A, #1E3A8A);;
    border-radius: 24px;
    padding: 9px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: 0.25s;
}

.download-btn:hover {
    background: #fff6ef;
    transform: translateY(-2px);
}

.process-list {
    display: grid;
    gap: 12px;
}

.process-step {
    background: #fff;
    border: 1px solid #dde3e9;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.process-step > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #fff4e8;
    color: blue;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.process-step h3 {
    color: #0f2e59;
    font-size: 14px;
    margin: 0 0 3px;
}

.process-step p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

/* =========================
   Forms / Login / Signup
========================= */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    height: 56px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    border: none;
    outline: none;
    margin-left: 12px;
    font-size: 15px;
}

.input-group i {
    color: #64748B;
}

.divider {
    text-align: center;
    margin: 22px 0;
    color: #64748B;
}

.google-btn {
    width: 100%;
    height: 52px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    transition: 0.25s;
}

.google-btn:hover {
    background: #F8FAFC;
}

.login-section {
    padding: 40px 5% 60px;
    background: #F8FAFC;
    min-height: 100vh;
}

.login-container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.login-left {
    padding: 70px 50px;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: #fff;
}

.login-left h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.login-left p {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 28px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-features i {
    color: #22C55E;
    margin-right: 8px;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 32px;
    margin-bottom: 22px;
    color: #0F172A;
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 14px;
}

.login-options a {
    color: #2563EB;
    text-decoration: none;
}

.login-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #2563EB;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.login-submit:hover {
    background: #1D4ED8;
}

.signup-text {
    text-align: center;
    margin-top: 22px;
}

.signup-text a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.signup-section {
    min-height: 100vh;
    background: #F8FAFC;
    padding: 40px 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.signup-left {
    padding: 70px 50px;
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: #fff;
}

.signup-left h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.signup-left p {
    line-height: 1.7;
    color: #CBD5E1;
    margin-bottom: 28px;
}

.signup-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signup-features i {
    color: #22C55E;
    margin-right: 8px;
}

.signup-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.signup-box {
    width: 100%;
    max-width: 420px;
}

.signup-box h2 {
    font-size: 30px;
    color: #0F172A;
    margin-bottom: 20px;
}

.terms {
    display: block;
    margin: 12px 0 20px;
    font-size: 13px;
    color: #475569;
}

.terms a {
    color: #2563EB;
    text-decoration: none;
}

.signup-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #2563EB;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.signup-btn:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 22px;
}

.login-link a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   Footer
========================= */
.footer {
    background: linear-gradient(135deg, #0F172A, #1E3A8A);
    color: #fff;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding: 0 20px;
}

.footer-company {
    max-width: 340px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 18px;
}

.footer-company p {
    color: #CBD5E1;
    line-height: 1.8;
    font-size: 15px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #CBD5E1;
    text-decoration: none;
    transition: 0.25s;
}

.footer-col ul li a:hover {
    color: #60A5FA;
    padding-left: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #CBD5E1;
    line-height: 1.6;
    font-size: 14px;
}

.contact-item i {
    color: #60A5FA;
    min-width: 18px;
    margin-top: 3px;
}

.contact-item a {
    color: #CBD5E1;
    text-decoration: none;
}

.contact-item a:hover {
    color: #60A5FA;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: 0.25s;
}

.social-links a:hover {
    background: #2563EB;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 22px 20px;
    text-align: center;
    color: #CBD5E1;
    font-size: 14px;
}

/* =========================
   Media Queries
========================= */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .buyback-hero,
    .partner-hero,
    .quote-section,
    .process-section,
    .why-gmh,
    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-copy h1 {
        font-size: 36px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-row {
        grid-template-columns: 1fr;
    }
    .work-row.reverse .work-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        gap: 12px 18px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .navbar {
        height: 70px;
        padding: 0 15px;
        top: 38px; /* below mobile top-bar */
    }

    .navbar.sticky {
        top: 0;
        height: 65px;
    }

    .logo {
        height: 58px;
    }

    body {
        padding-top: 108px; /* mobile top-bar + navbar */
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        z-index: 9998;
    }

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

    .nav-links > a,
    .dropdown .dropbtn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 22px;
        color: #333;
        text-decoration: none;
        font-weight: 600;
        background: none;
        border: none;
        text-align: left;
        box-sizing: border-box;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        justify-content: space-between;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #f8fafc;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 11px 40px;
        min-height: 44px;
    }

    .nav-links .login-btn {
        width: calc(100% - 44px);
        margin: 10px 22px 6px;
        justify-content: center;
    }

    .steps-container,
    .services-grid,
    .why-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .section-badge {
        font-size: 22px;
        padding: 10px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-logo {
        height: 60px;
    }

    .sell-hero {
        grid-template-columns: 1fr;
        padding: 30px 22px;
        margin-top: 100px;
    }

    .sell-left h1 {
        font-size: 32px;
    }

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

    .sell-right img {
        width: 260px;
    }

    .iphone-page-header,
    .Android-page-header,
    .laptop-page-header,
    .tablet-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .iphone-search-box,
    .Android-search-box,
    .laptop-search-box,
    .tablet-search-box {
        width: 100%;
    }

    .iphone-models-grid,
    .Android-models-grid,
    .laptop-models-grid,
    .tablet-models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .login-container,
    .signup-container {
        grid-template-columns: 1fr;
    }

    .login-left,
    .signup-left {
        padding: 40px 28px;
        text-align: center;
    }

    .login-left h1,
    .signup-left h1 {
        font-size: 28px;
    }

    .login-right,
    .signup-right {
        padding: 30px 22px;
    }

    .buyback-hero {
        padding: 110px 20px 30px;
        text-align: left;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .quote-section {
        grid-template-columns: 1fr;
        padding: 30px 18px;
    }

    .two-cols,
    .three-cols {
        grid-template-columns: 1fr;
    }

    .process-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .partner-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .hero-copy h1 {
        font-size: 28px;
    }
    .iphone-models-grid,
    .Android-models-grid,
    .laptop-models-grid,
    .tablet-models-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .device-img-wrap {
        height: 110px;
    }
    .orange-btn,
    .submit-btn {
        width: 100%;
    }
}

/* =========================
   Buy Page / Stock Cards
========================= */
.buy-page {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto 60px;
}

.buy-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.buy-page-header h1 {
    font-size: 36px;
    color: #0F172A;
    margin-bottom: 6px;
}

.buy-subtitle {
    color: #64748B;
    font-size: 15px;
}

.buy-search-box {
    width: 300px;
    height: 48px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 16px;
}

.buy-search-box input {
    width: 100%;
    border: none;
    outline: none;
    margin-left: 10px;
    font-size: 15px;
    font-family: inherit;
}

.buy-search-box i {
    color: #64748B;
}

.buy-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-chip:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.filter-chip.active {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.stock-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.stock-card:hover {
    border-color: #2563EB;
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.stock-img-wrap {
    position: relative;
    height: 180px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.stock-img-wrap img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.condition-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.condition-badge.excellent {
    background: #DCFCE7;
    color: #15803D;
}

.condition-badge.good {
    background: #DBEAFE;
    color: #1D4ED8;
}

.condition-badge.fair {
    background: #FFEDD5;
    color: #C2410C;
}

.stock-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stock-body h3 {
    font-size: 16px;
    color: #0F172A;
    margin-bottom: 10px;
    line-height: 1.3;
}

.stock-specs {
    list-style: none;
    margin-bottom: 16px;
    flex: 1;
}

.stock-specs li {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-specs li i {
    width: 16px;
    color: #94A3B8;
    font-size: 12px;
}

.stock-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
}

.stock-price {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
}

.stock-btn {
    background: #2563EB;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    transition: 0.2s;
    white-space: nowrap;
}

.stock-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.stock-empty {
    text-align: center;
    color: #64748B;
    padding: 40px 20px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .buy-page-header h1 {
        font-size: 28px;
    }

    .buy-search-box {
        width: 100%;
    }

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

    .stock-img-wrap {
        height: 140px;
    }

    .stock-img-wrap img {
        max-height: 110px;
    }

    .stock-body h3 {
        font-size: 14px;
    }

    .stock-price {
        font-size: 15px;
    }

    .stock-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

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

.device-search {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
}

.device-search input {
    flex: 1;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 10px 0 0 10px;
    outline: none;
    font-size: 16px;
}

.device-search input:focus {
    border-color: #111;
}

.device-search button {
    padding: 15px 25px;
    border: none;
    background: #111;
    color: white;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 16px;
}

.device-search button:hover {
    background: #333;
}

/* Mobile */
@media (max-width: 600px) {

    .device-search {
        flex-direction: column;
        gap: 10px;
    }

    .device-search input {
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .device-search button {
        width: 100%;
        border-radius: 10px;
    }
}


/* =====================================================
   BUY PAGE – Dynamic Inventory Enhancements
   (extends existing .buy-page / .stock-card rules)
   ===================================================== */

/* Filter panel wrapper */
.buy-filters-wrap {
  margin-bottom: 28px;
}

.filters-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #0F172A;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filters-toggle .chevron {
  transition: transform 0.22s ease;
}

.filters-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.buy-filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-range-inputs input {
  width: 90px;
  padding: 8px 10px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.price-range-inputs input:focus {
  outline: none;
  border-color: #2563EB;
}

.price-sep {
  color: #94A3B8;
}

.price-apply-btn {
  padding: 8px 14px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.price-apply-btn:hover {
  background: #1D4ED8;
}

.clear-filters-btn {
  align-self: flex-end;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #64748B;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.clear-filters-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Loading / Error */
.stock-loading,
.stock-error {
  text-align: center;
  padding: 48px 16px;
  color: #64748B;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E2E8F0;
  border-top-color: #2563EB;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: gmh-spin 0.7s linear infinite;
}

@keyframes gmh-spin {
  to { transform: rotate(360deg); }
}

.stock-error i {
  font-size: 28px;
  color: #f59e0b;
  margin-bottom: 10px;
}

.retry-btn {
  margin-top: 14px;
  padding: 10px 22px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.retry-btn:hover {
  background: #1D4ED8;
}

.stock-empty {
  text-align: center;
  color: #64748B;
  padding: 40px 20px;
  font-size: 15px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #E2E8F0;
}

/* Enhanced stock card */
.stock-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.stock-card:hover {
  border-color: #2563EB;
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.stock-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.stock-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Status badge (top-right) */
.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

.status-badge.available {
  background: #DCFCE7;
  color: #166534;
}

.status-badge.sold {
  background: #FEE2E2;
  color: #991B1B;
}

.status-badge.reserved {
  background: #FEF3C7;
  color: #92400E;
}

/* Condition badge colours */
.condition-badge.like-new {
  background: #DCFCE7;
  color: #166534;
}

.condition-badge.excellent {
  background: #DBEAFE;
  color: #1E40AF;
}

.condition-badge.good {
  background: #FFEDD5;
  color: #C2410C;
}

.condition-badge.fair {
  background: #FEE2E2;
  color: #991B1B;
}

.stock-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563EB;
  margin-bottom: 2px;
}

.stock-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.meta-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #64748B;
  font-weight: 500;
}

.meta-tag.yes {
  background: #DCFCE7;
  color: #166534;
}

.meta-tag.no {
  background: #F1F5F9;
  color: #94A3B8;
}

.stock-btn.sold-out,
.stock-btn.reserved {
  background: #94A3B8;
  pointer-events: none;
  cursor: not-allowed;
}

.stock-btn.reserved {
  background: #D97706;
}

.stock-card.is-sold .stock-img-wrap::after,
.stock-card.is-reserved .stock-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Buy page responsive */
@media (max-width: 768px) {
  .filters-toggle {
    display: flex;
  }

  .buy-filters-panel {
    display: none;
    flex-direction: column;
    margin-top: 12px;
  }

  .buy-filters-panel.open {
    display: flex;
  }

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

  .stock-img-wrap {
    height: 150px;
    padding: 12px;
  }
}

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

  .stock-img-wrap {
    height: 180px;
  }

  .price-range-inputs {
    flex-wrap: wrap;
  }
}
