/* ============================================================
   UCEGA Pin Gauges - Frontend Stylesheet
   Theme: Sky blue premium e-commerce (mobile-first, responsive)
   ============================================================ */

:root {
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --primary-darker: #075985;
    --bg-soft: #f0f9ff;
    --white: #ffffff;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 3px rgba(2, 132, 199, 0.08);
    --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.10);
    --shadow-lg: 0 20px 50px rgba(2, 132, 199, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --header-height: 74px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.25;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--gray-500);
    font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

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

.btn-dark:hover {
    background: var(--gray-900);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13.5px;
}

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--primary-darker);
    color: #e0f2fe;
    font-size: 13px;
    padding: 7px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topbar a {
    color: #e0f2fe;
}

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

.topbar-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.topbar-links i {
    margin-right: 5px;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    height: 42px;
    width: auto;
}

.brand .brand-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.brand .brand-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--bg-soft);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 18px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Search */
.nav-search {
    position: relative;
}

.nav-search input {
    width: 200px;
    padding: 10px 40px 10px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--gray-100);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    width: 240px;
}

.nav-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    color: var(--white);
    overflow: hidden;
    padding-bottom: 100px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-img, var(--primary)) center/cover no-repeat;
    animation: hero-kenburns 25s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes hero-kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, -1%); }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,30,55,0.88) 0%, rgba(7,89,133,0.72) 50%, rgba(2,132,199,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.hero-particles::before,
.hero-particles::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 70%);
    animation: particle-float 12s ease-in-out infinite;
}
.hero-particles::before {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}
.hero-particles::after {
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    animation-delay: -6s;
}
@keyframes particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(30px, -40px) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    animation: fade-up 0.8s ease-out 0.1s both;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
    color: var(--white);
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fade-up 0.8s ease-out 0.3s both;
}

.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 38px;
    max-width: 560px;
    line-height: 1.7;
    animation: fade-up 0.8s ease-out 0.5s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fade-up 0.8s ease-out 0.7s both;
}

.hero-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}
.hero-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.55);
}

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fade-up 0.8s ease-out 1.2s both;
}
.hero-scroll span {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero stats bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(7, 30, 55, 0.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    animation: fade-up 0.8s ease-out 1s both;
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hero-stat {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}
.stat-num span {
    font-size: 16px;
    color: var(--primary-light);
    font-weight: 600;
    margin-left: 2px;
}
.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero { min-height: 90vh; padding-bottom: 140px; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-stat:nth-child(2) { border-right: none; }
    .hero-scroll { bottom: 150px; }
    .stat-num { font-size: 22px; }
}

/* ---------- Feature strip ---------- */
.features-strip {
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 34px 30px;
}

.feature-item {
    text-align: center;
    padding: 10px;
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13.5px;
    color: var(--gray-500);
}

/* ---------- Product grid / cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card .card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.badge-sale { background: var(--danger); color: var(--white); }
.badge-new { background: var(--success); color: var(--white); }
.badge-out { background: var(--gray-500); color: var(--white); }

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

.card-body .card-cat {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.card-body h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.card-body h3 a {
    color: var(--dark);
}

.card-body h3 a:hover {
    color: var(--primary);
}

.card-price {
    margin: auto 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.card-price .price {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
}

.card-price .price-old {
    font-size: 14.5px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.stock-note {
    font-size: 12.5px;
    font-weight: 600;
}

.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

.add-cart-btn {
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-soft);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-cart-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 产品详情页加购按钮：单独一行，自适应宽度 */
.detail-add-btn {
    width: auto;
    padding: 12px 32px;
    margin-top: 14px;
}

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: flex-end;
    background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card .cat-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 22px;
    background: linear-gradient(transparent, rgba(7, 89, 133, 0.92));
    color: var(--white);
}

.category-card .cat-overlay h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 4px;
}

.category-card .cat-overlay span {
    font-size: 13.5px;
    opacity: 0.9;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
    border-radius: 50%;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 14px;
    position: relative;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 28px;
    position: relative;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--bg-soft);
    padding: 18px 0;
    font-size: 14px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--primary-dark); font-weight: 600; }

/* ---------- Shop layout ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}

.shop-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-widget {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget h4 {
    font-size: 15px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 14.5px;
}

.cat-list a:hover,
.cat-list a.active {
    background: var(--bg-soft);
    color: var(--primary);
}

.cat-list .count {
    background: var(--gray-100);
    border-radius: 50px;
    padding: 1px 9px;
    font-size: 12px;
    color: var(--gray-500);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.shop-toolbar .result-count {
    font-size: 14px;
    color: var(--gray-500);
}

.form-select {
    padding: 10px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

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

.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    margin-bottom: 18px;
}

.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info { background: var(--bg-soft); color: var(--primary-dark); border: 1px solid #bae6fd; }

/* ---------- Auth cards ---------- */
.auth-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.auth-card .sub {
    color: var(--gray-500);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--gray-500);
}

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1/1;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-thumbs .thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--bg-soft);
    transition: var(--transition);
}

.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    border-color: var(--primary);
}

.pd-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.pd-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--gray-500);
}

.pd-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pd-price .price {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-dark);
}

.pd-price .price-old {
    font-size: 20px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.pd-desc {
    color: var(--gray-700);
    margin-bottom: 24px;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-input button {
    width: 42px;
    height: 46px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-700);
    transition: var(--transition);
}

.qty-input button:hover { background: var(--primary); color: var(--white); }

.qty-input input {
    width: 56px;
    height: 46px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.qty-input input:focus { outline: none; }

.pd-tabs {
    margin-top: 50px;
}

.pd-tabs .tab-content {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 30px;
}

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

.spec-table th, .spec-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14.5px;
}

.spec-table th {
    width: 220px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ---------- Cart ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    align-items: start;
}

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

.cart-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-100);
}

.cart-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item img {
    width: 66px;
    height: 66px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-soft);
}

.cart-item .ci-name {
    font-weight: 600;
    color: var(--dark);
}

.cart-item .ci-sku {
    font-size: 12.5px;
    color: var(--gray-500);
}

.remove-link {
    color: var(--danger);
    font-size: 13px;
}

.summary-box {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.summary-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px dashed var(--gray-300);
}

.summary-row.total {
    border-bottom: none;
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    padding-top: 18px;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
}

.empty-state i {
    font-size: 56px;
    color: var(--gray-300);
    margin-bottom: 18px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

/* ---------- Checkout ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.checkout-section h3 {
    font-size: 19px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.paypal-container {
    margin-top: 20px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 44px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    padding: 0 12px;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---------- Account ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: start;
}

.account-menu {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 14px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14.5px;
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--bg-soft);
    color: var(--primary);
}

.account-content {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 30px;
}

.order-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.order-card .order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.status-pill {
    padding: 4px 13px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill.paid, .status-pill.processing { background: #dcfce7; color: var(--success); }
.status-pill.pending { background: #fef9c3; color: #a16207; }
.status-pill.cancelled { background: #fee2e2; color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0b1e33;
    color: #94a3b8;
    margin-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 64px 0 48px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p { font-size: 14.5px; line-height: 1.75; }

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

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

.footer-col ul a {
    color: #94a3b8;
    font-size: 14.5px;
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 13px;
    font-size: 14.5px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 4px;
    width: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 13.5px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1200;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border-top: 4px solid var(--primary);
    transform: translateY(140%);
    opacity: 0;
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner h4 {
    font-size: 17px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.cookie-banner p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

/* ---------- Live chat widget ---------- */
.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
}

.chat-fab {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.chat-fab:hover { transform: scale(1.08); }

.chat-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2.2s ease-out infinite;
}

.chat-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 300px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-panel-head {
    background: var(--primary-dark);
    color: var(--white);
    padding: 16px 18px;
}

.chat-panel-head h5 { color: var(--white); font-size: 16px; }
.chat-panel-head p { font-size: 12.5px; opacity: 0.85; }

.chat-panel-body {
    padding: 18px;
    font-size: 13.5px;
    color: var(--gray-500);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1300;
    background: var(--dark);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.toast i { color: var(--primary-light); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary-box { position: static; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 24px 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s ease;
        z-index: 1050;
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .main-nav a { width: 100%; }
    .nav-search { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .category-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .form-row { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr {
        border: 1px solid var(--gray-100);
        border-radius: var(--radius);
        margin-bottom: 14px;
        padding: 10px;
    }
    .cart-table td { border-bottom: none; padding: 8px; }
    .topbar .topbar-hide { display: none; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; padding: 24px; }
    .footer-main { grid-template-columns: 1fr; }
    .hero { min-height: 78vh; }
    .qty-row .btn { width: 100%; }
}

/* ---------- Contact Page ---------- */
.contact-hero {
    text-align: center;
    margin-bottom: 48px;
}
.contact-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.contact-hero p {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}
.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ci-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.contact-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}
.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
}
.contact-info-card a:hover {
    text-decoration: underline;
}
.contact-form-wrap {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form .form-group {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.contact-form .required {
    color: #ef4444;
}
.contact-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 20px; }
}

/* ---------- Product Options ---------- */
.pd-options {
    margin: 18px 0 6px;
}
.pd-option-group {
    margin-bottom: 16px;
}
.pd-option-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pd-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-option-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-700);
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.pd-option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pd-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.pd-option-select {
    width: 100%;
    max-width: 360px;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--gray-800);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-option-select:hover {
    border-color: var(--primary);
}
.pd-option-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.pd-option-select option {
    padding: 8px;
    background: var(--white);
    color: var(--gray-800);
}
.ci-options {
    font-size: 12.5px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ---------- Footer Social ---------- */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ---------- WhatsApp Floating Button ---------- */
.wa-fab {
    position: fixed;
    bottom: 165px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 9990;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: wa-pulse 2s ease-in-out infinite;
}
.wa-fab i {
    display: inline-block;
    animation: wa-icon-scale 2s ease-in-out infinite;
}
.wa-fab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: wa-ring 2s ease-out infinite;
}
.wa-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    color: #fff;
}
.wa-fab:hover i {
    animation: none;
    transform: scale(1);
}
.wa-fab .wa-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.wa-fab:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}
.wa-fab .wa-tooltip.show {
    opacity: 1;
    visibility: visible;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.8); }
}
@keyframes wa-icon-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes wa-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
@media (max-width: 768px) {
    .wa-fab { bottom: 158px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
}

/* ---------- New Arrivals Banner ---------- */
.new-arrivals-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 28px 32px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.new-arrivals-banner::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.new-arrivals-banner h2 {
    color: #fff;
    font-size: 26px;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.new-arrivals-banner p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 14.5px;
    position: relative;
    z-index: 1;
}
