:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f4f7ff;
    --text: #111827;
    --muted: #6b7280;
    --brand-red: #e02334;
    --brand-blue: #1f6cf1;
    --brand-gradient: linear-gradient(135deg, #e02334 0%, #1f6cf1 100%);
    --border: #dbe2ee;
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-tagline {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-list {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--brand-blue);
}

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

.nav-toggle {
    display: none;
    border: none;
    background: rgba(255,255,255,0.95);
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-close {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: rgba(255,255,255,0.95);
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 22px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 18px 45px rgba(224, 35, 52, 0.18);
}

.btn-secondary {
    background: rgba(31, 108, 241, 0.08);
    color: var(--brand-blue);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.btn.active,
.btn-outline.active {
    color: var(--brand-blue);
    border-color: rgba(31, 108, 241, 0.4);
    background: rgba(31, 108, 241, 0.12);
}

.page-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 72vh;
    display: grid;
    align-items: center;
    padding: 5px 0 60px;
    background: linear-gradient(180deg, rgba(224, 35, 52, 0.05), rgba(31, 108, 241, 0.05));
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.98;
}

.hero-copy p {
    margin: 0 0 32px;
    color: var(--muted);
    max-width: 660px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: relative;
    width: 100%;
    min-height: 78vh;
    border-radius: 40px;
    overflow: hidden;
    background: var(--surface);
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: none;
}
.hero-visual.active {
    opacity: 1;
    transform: none;
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at top left, rgba(31, 108, 241, 0.45), transparent 24%), radial-gradient(circle at bottom right, rgba(224, 35, 52, 0.35), transparent 18%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 78vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.03);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

@media (max-width: 768px) {
    .hero {
        min-height: 58vh;
        padding: 0 0 20px;
    }
    .hero-visual {
        min-height: 58vh;
    }
    .hero-slide {
        background-size: contain;
        background-position: center center;
        min-height: auto;
        transform: none;
    }
    .hero-slide.active {
        transform: none;
    }
}

.hero-slide-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 24px 32px;
    background: linear-gradient(180deg, rgba(6, 14, 36, 0) 0%, rgba(6, 14, 36, 0.72) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-slide-panel h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
    line-height: 1.05;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    color: #fff;
    background: linear-gradient(180deg, rgba(6, 14, 36, 0.12) 0%, rgba(6, 14, 36, 0.55) 35%, rgba(6, 14, 36, 0.85) 100%);
}

.hero-slide-overlay.position-center-left {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.hero-slide-overlay.position-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide-overlay.position-center-right {
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.hero-slide-overlay.position-top-left {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.hero-slide-overlay.position-top-right {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

.hero-slide-overlay.position-bottom-left {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
}

.hero-slide-overlay.position-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.hero-slide-btn {
    min-width: 180px;
}

.hero-slide-overlay h2,
.hero-slide-overlay h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.8rem, 4vw, 5rem);
    line-height: 1.02;
}

.hero-slide-overlay p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.hero-slide-overlay .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
}

.hero-slide-overlay .btn {
    min-width: 180px;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    line-height: 1.75;
}

.slide-editor-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 18px;
}

.hero-slide-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px;
}

.hero-slide-card label {
    display: block;
    margin: 16px 0 8px;
    color: var(--muted);
}

.hero-slide-card input,
.hero-slide-card textarea,
.hero-slide-card select {
    width: 100%;
    margin: 0;
}

.form-grid-small {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

@media (max-width: 780px) {
    .form-grid-small {
        grid-template-columns: 1fr;
    }
}

.hero-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.hero-controls button {
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.fallback-hero {
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 32%),
                linear-gradient(180deg, rgba(224, 35, 52, 0.25), rgba(31, 108, 241, 0.16));
}

.section-title {
    margin: 0 0 16px;
    font-size: 2rem;
}

.section-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    max-width: 700px;
}

.grid {
    display: grid;
    gap: 24px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.card,
.project-card,
.blog-card,
.contact-card,
.admin-service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.service-card {
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}
.project-card-image {
    width: 100%;
    height: 220px;
    border-radius: 24px 24px 0 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 18px;
}

.card h3,
.project-card h3,
.blog-card h3 {
    margin-top: 0;
}

.service-card h3 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
}

.service-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card p,
.project-card p,
.blog-card p,
.contact-card p {
    color: var(--muted);
    line-height: 1.8;
}

.feature-grid,
.project-grid,
.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.blog-card {
    overflow: hidden;
}

.admin-service-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        justify-content: center;
        justify-items: stretch;
        max-width: 1200px;
        width: min(100%, 1200px);
        margin: 0 auto;
    }

    .service-grid.admin-service-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .admin-service-card {
        display: grid;
        gap: 16px;
        padding: 20px;
        width: 100%;
        max-width: 360px;
        justify-self: center;
        align-items: start;
        text-align: center;
    }

    .admin-service-card h3,
    .admin-service-card p {
        margin: 0;
    }

    .admin-service-card .service-card-meta {
        justify-content: center;
    }

    .admin-service-card .card-actions {
        justify-content: center;
    }

    .service-card-image {
        width: 100%;
        aspect-ratio: 1;
        max-width: 512px;
        object-fit: cover;
        border-radius: 20px;
        background: var(--surface);
    }

    .service-grid .service-card-image {
        width: 100%;
        height: 140px;
        aspect-ratio: unset;
        margin: 0 0 12px 0;
        object-fit: cover;
        border-radius: 12px;
    }

    .admin-service-card .service-card-image {
        width: 150px;
        height: 150px;
        aspect-ratio: unset;
        margin: 0 auto 18px;
    }

    .service-grid .service-card-image.placeholder {
        width: 100%;
        height: 140px;
        margin: 0 0 12px 0;
        border-radius: 12px;
    }

    .admin-service-card .service-card-image.placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto 18px;
    }

    .admin-service-card .service-card-image.placeholder,
    .service-card-image.placeholder {
        display: grid;
        place-items: center;
        color: var(--muted);
        background: rgba(15, 23, 42, 0.04);
        border: 1px dashed var(--border);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.85rem;
    }

    .service-card-meta {
        display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.field-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-card img,
.blog-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-card .card-body,
.blog-card .card-body {
    padding: 24px;
}

.card-badge,
.meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(31, 108, 241, 0.1);
    color: var(--brand-blue);
    margin-bottom: 18px;
}

.section-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px;
    margin: 64px 0;
    border-radius: 28px;
    background: linear-gradient(135deg, #1f6cf1, #e02334);
    color: #fff;
}

.section-banner h2 {
    margin: 0 0 12px;
}

.section-banner p {
    margin: 0;
        color: rgba(255,255,255,0.88);
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
        margin-top: 32px;
    }

    .metrics-grid,
    .testimonial-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .metric-card,
    .testimonial-card {
        background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
        border: 1px solid rgba(31, 108, 241, 0.14);
        border-radius: 28px;
        padding: 32px;
        box-shadow: 0 24px 70px rgba(31, 108, 241, 0.08);
    }

    .metric-card span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        background: linear-gradient(135deg, #1f6cf1, #e02334);
        color: #fff;
        font-weight: 700;
        margin-bottom: 18px;
    }

    .metric-card h3,
    .testimonial-card strong {
        margin: 0 0 14px;
    }

    .testimonial-card p {
        color: var(--text);
        line-height: 1.9;
        margin: 0 0 18px;
    }

    .testimonial-card strong {
        display: block;
        color: var(--brand-blue);
    }

    @media (max-width: 960px) {
        .metrics-grid,
        .testimonial-grid,
        .service-grid,
        .project-grid {
            grid-template-columns: 1fr;
        }
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(31, 108, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-blue);
    font-weight: 700;
}

.team-avatar-empty {
    background-color: rgba(31, 108, 241, 0.12);
}

.team-card {
    text-align: center;
}

.team-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.team-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.form-grid {
    display: grid;
    gap: 24px;
}

.form-field {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.page-intro {
    margin: 80px 0 28px;
}

.page-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 3vw, 3.6rem);
}

.page-intro p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.shop-hero {
    border-radius: 32px;
    padding: 42px 36px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(31, 108, 241, 0.12), rgba(224, 35, 52, 0.08));
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.08);
}

.product-spotlight {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.featured-slider {
    padding: 14px 0 0;
}

.featured-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    margin-top: 16px;
    -webkit-overflow-scrolling: touch;
}

.featured-track::-webkit-scrollbar {
    height: 8px;
}

.featured-track::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 999px;
}

.spotlight-slide {
    flex: 0 0 min(84vw, 420px);
    max-width: 420px;
    scroll-snap-align: start;
}

.featured-slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: absolute;
    right: 20px;
    top: 12px;
    z-index: 1;
}

.featured-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.featured-progress button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.featured-progress button:hover {
    transform: scale(1.05);
}

.featured-progress button.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.slider-btn {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: #1f1f1f;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.spotlight-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 280px;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.spotlight-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.spotlight-card .product-actions,
.spotlight-card .product-actions * {
    position: relative;
    z-index: 2;
}

.spotlight-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.spotlight-body {
    padding: 22px;
}

.spotlight-body h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 2.2vw, 2.4rem);
}

.spotlight-details {
    margin: 16px 0 0;
    padding: 16px;
    border-radius: 20px;
    background: rgba(31, 108, 241, 0.05);
}

.spotlight-details h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--brand-blue);
}

.spotlight-details p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.spotlight-meta {
    margin-top: 20px;
}

.btn.btn-primary {
    min-width: 180px;
}

.shop-cart-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 18px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(6, 14, 36, 0.35);
    display: none;
    justify-content: flex-end;
    backdrop-filter: blur(3px);
}

.cart-overlay.open {
    display: flex;
}

.cart-panel {
    width: min(420px, 100%);
    max-height: 100vh;
    background: #fff;
    box-shadow: -20px 0 70px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
}

.cart-panel-header,
.cart-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-panel-body {
    overflow-y: auto;
    padding-right: 4px;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-item-info {
    display: grid;
    gap: 6px;
}

.cart-item-name {
    font-weight: 700;
}

.cart-item-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cart-total {
    font-weight: 700;
}

.cart-empty {
    color: var(--muted);
}

@media (max-width: 760px) {
    .cart-panel {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(6, 14, 36, 0.35);
    display: none;
    justify-content: flex-end;
    backdrop-filter: blur(3px);
}

.cart-overlay.open {
    display: flex;
}

.cart-panel {
    width: min(420px, 100%);
    max-height: 100vh;
    background: #fff;
    box-shadow: -20px 0 70px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
}

.cart-panel-header,
.cart-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-panel-body {
    overflow-y: auto;
    padding-right: 4px;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-item-info {
    display: grid;
    gap: 6px;
}

.cart-item-name {
    font-weight: 700;
}

.cart-item-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cart-total {
    font-weight: 700;
}

.cart-empty {
    color: var(--muted);
}

@media (max-width: 760px) {
    .cart-panel {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.floating-cart-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 220;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-cart-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.floating-cart-btn .cart-count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 8px;
}

@media (max-width: 660px) {
    .floating-cart-btn {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
    }
}

.shop-cart-panel .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.shop-cart-panel .cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: grid;
    gap: 4px;
}

.cart-item-name {
    font-weight: 700;
}

.cart-item-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-remove {
    border: none;
    background: transparent;
    color: var(--brand-red);
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: underline;
    padding: 0;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-total {
    font-weight: 700;
}

.cart-empty {
    color: var(--muted);
}

@media (max-width: 960px) {
    .shop-cart-panel {
        position: static;
    }
}

.cart-notice {
    padding: 14px 18px;
    margin: 0 0 12px;
    border-radius: 18px;
    background: rgba(29, 161, 242, 0.12);
    color: #0f172a;
    border: 1px solid rgba(29, 161, 242, 0.25);
    font-size: 0.95rem;
    display: none;
}

.cart-notice.visible {
    display: block;
}

.shop-hero .hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 3vw, 3.8rem);
}

.shop-hero .hero-copy p {
    max-width: 720px;
    margin-bottom: 24px;
    color: rgba(15, 23, 42, 0.78);
}

.product-spotlight {
    margin-bottom: 40px;
}

.spotlight-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.spotlight-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.spotlight-body {
    padding: 32px;
    display: grid;
    gap: 22px;
    align-content: center;
}

.spotlight-body h2 {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 3rem);
}

.spotlight-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 820px;
}

.spotlight-meta {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 960px) {
    .spotlight-card {
        grid-template-columns: 1fr;
    }

    .spotlight-card img {
        min-height: 260px;
    }
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.shop-card {
    background: #fff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.shop-filter-card {
    display: grid;
    gap: 18px;
}

.shop-filter-card input[type="search"],
.shop-filter-card input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8f9fc;
    color: var(--text-dark);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.filter-row label {
    display: block;
    margin-bottom: 8px;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.95rem;
}

#apply-filters {
    justify-self: start;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.category-list li a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fafbfd;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(31, 108, 241, 0.1);
    border-color: rgba(31, 108, 241, 0.2);
    transform: translateY(-1px);
}

.category-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-body {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.product-body h3 {
    margin: 0;
    font-size: 1.5rem;
}

.product-body small {
    display: inline-block;
    color: var(--brand-blue);
    font-weight: 700;
}

.product-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    min-height: 90px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.product-card .product-link {
    color: inherit;
    text-decoration: none;
}

.product-card .product-link:hover {
    text-decoration: underline;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.product-detail-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-top: 32px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.product-detail-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 20px;
}

.product-detail-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-blue);
}

.product-detail-card p {
    margin: 0;
    color: var(--muted);
}

.product-detail-card .price {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    display: block;
}

.product-detail-card .btn {
    width: 100%;
}

.rich-text {
    display: grid;
    gap: 22px;
}

.rich-text h3 {
    margin: 0;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.product-card .btn.small {
    min-width: 180px;
    padding: 12px 18px;
}

.banner-quote {
    margin-top: 48px;
}

.meta-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-row .meta-card {
    background: rgba(31, 108, 241, 0.08);
    border: 1px solid rgba(31, 108, 241, 0.12);
    border-radius: 24px;
    padding: 28px;
}

.meta-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: var(--brand-blue);
}

.page-footer-note {
    text-align: center;
    margin-top: 48px;
    color: var(--muted);
}

.message-box {
    border-radius: 20px;
    padding: 18px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(31, 108, 241, 0.18);
    background: rgba(31, 108, 241, 0.08);
    color: var(--brand-blue);
}

footer.site-footer {
    padding: 64px 32px;
    background: linear-gradient(135deg, #1f6cf1 0%, #e02334 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1220px;
    margin: 0 auto 24px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 24px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer.site-footer {
        padding: 32px 16px;
    }
    .footer-bottom {
        padding-top: 16px;
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .feature-grid,
    .project-grid,
    .blog-grid,
    .service-grid,
    .admin-service-grid,
    .meta-row,
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        top: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 22px;
        border-radius: 22px;
        box-shadow: 0 30px 75px rgba(15, 23, 42, 0.14);
        transform: translateY(-120%);
        transition: transform 0.25s ease, opacity 0.25s ease;
        visibility: hidden;
        opacity: 0;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        z-index: 150;
    }

    .site-nav.nav-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-close {
        display: inline-flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
    }

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

    .nav-actions .btn {
        width: 100%;
    }

    .brand-tagline {
        display: none;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-group {
        gap: 12px;
    }

    .nav-list a {
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 16px;
    }
    .page-shell {
        padding: 0 16px 40px;
    }
    .hero {
        min-height: 52vh;
        padding: 0 0 16px;
    }
    .hero-visual {
        min-height: 280px;
    }
    .hero-slide-overlay {
        padding: 20px 16px 18px;
    }
    .hero-slide-overlay h2,
    .hero-slide-overlay h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .hero-slide-overlay p {
        font-size: 0.95rem;
    }
    .hero-slide-btn,
    .hero-actions .btn,
    .nav-actions .btn,
    .product-actions .btn,
    .section-banner .btn {
        width: 100%;
    }
    .shop-hero {
        padding: 24px 16px;
    }
    .shop-layout {
        gap: 18px;
    }
    .category-list li a {
        padding: 14px 16px;
    }
    .product-card img {
        height: auto;
    }
    .product-card .btn.small {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .section-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .section-banner .btn {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
    .service-grid,
    .admin-service-grid,
    .project-grid,
    .blog-grid,
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 28px;
    }
    .page-shell {
        padding: 0 32px 64px;
    }
    .site-header {
        padding: 24px 32px;
    }
}
