@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

      :root {
        --navy: #082d52;
        --navy-2: #0e456f;
        --ink: #14304e;
        --muted: #6d7b8c;
        --line: #dbe5ef;
        --paper: #f3f7fb;
        --card: #ffffff;
        --orange: #ff7a21;
        --blue: #1665aa;
        --teal: #0c8a8e;
        --red: #ef445f;
        --shadow: 0 14px 32px rgba(16, 48, 82, 0.12);
        font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        color: var(--ink);
        background: #eef4f9;
        font-weight: 400;
        line-height: 1.5;
      }

      button,
      input,
      select {
        font: inherit;
      }

      button,
      a {
        -webkit-tap-highlight-color: transparent;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      img {
        display: block;
        max-width: 100%;
      }

      .page {
        min-height: 100vh;
        background:
          linear-gradient(180deg, rgba(8, 45, 82, 0.06), rgba(255, 255, 255, 0) 360px),
          var(--paper);
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: 290px minmax(0, 1fr) auto;
        align-items: center;
        gap: 20px;
        min-height: 72px;
        padding: 0 38px;
        color: #ffffff;
        background: linear-gradient(90deg, #082c50 0%, #06345a 58%, #093a62 100%);
        box-shadow: 0 10px 28px rgba(5, 25, 48, 0.22);
      }

      .brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
      }

      .brand img {
        width: 74px;
        height: 50px;
        object-fit: contain;
      }

      .brand strong {
        display: block;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        line-height: 0.92;
        letter-spacing: 0;
      }

      .brand strong span {
        color: var(--orange);
      }

      .brand small {
        display: block;
        margin-top: 4px;
        color: #d8e7f7;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
      }

      .main-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 34px;
        min-width: 0;
      }

      .main-nav a {
        position: relative;
        padding: 27px 0 24px;
        color: #eaf4ff;
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
      }

      .main-nav a.active {
        color: #ff944b;
      }

      .main-nav a.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 13px;
        height: 4px;
        background: var(--orange);
        border-radius: 99px;
      }

      .top-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
      }

      .icon-button {
        position: relative;
        display: inline-grid;
        width: 44px;
        height: 44px;
        place-items: center;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border: 0;
        border-radius: 50%;
      }

      .icon-button svg,
      .mini-icon {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .cart-count {
        position: absolute;
        top: -4px;
        right: -2px;
        display: grid;
        min-width: 17px;
        height: 17px;
        place-items: center;
        color: #ffffff;
        background: #ff4b5f;
        border: 2px solid #ffffff;
        border-radius: 99px;
        font-size: 10px;
        font-weight: 900;
      }

      .profile {
        background: #ffffff;
        color: #174369;
      }

      .hero {
        position: relative;
        min-height: 342px;
        overflow: hidden;
        color: #ffffff;
        background:
          linear-gradient(90deg, rgba(3, 31, 58, 0.94), rgba(5, 43, 75, 0.72) 43%, rgba(5, 38, 66, 0.88)),
          url("/assets/showroom.png") center / cover;
      }

      .hero::before,
      .hero::after {
        content: "";
        position: absolute;
        pointer-events: none;
      }

      .hero::before {
        inset: 0;
        background:
          linear-gradient(180deg, rgba(255, 122, 33, 0.2), transparent 43%),
          linear-gradient(90deg, rgba(1, 20, 36, 0.7), transparent 44%, rgba(1, 20, 36, 0.55));
      }

      .hero::after {
        right: 2%;
        bottom: -46px;
        width: clamp(250px, 28vw, 420px);
        aspect-ratio: 1.45;
        background: url("/assets/phones-showroom.jpg") center / cover;
        border: 1px solid rgba(255, 255, 255, 0.26);
        border-radius: 10px;
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
        transform: rotate(-3deg);
      }

      .hero-inner {
        position: relative;
        z-index: 1;
        width: min(1120px, calc(100% - 48px));
        margin: 0 auto;
        padding: 46px 0 34px;
      }

      .hero-copy {
        width: min(680px, 100%);
      }

      .eyebrow {
        margin: 0 0 4px;
        color: #ff9b47;
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
      }

      .hero h1 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0;
        font-size: clamp(34px, 4vw, 50px);
        line-height: 1;
        letter-spacing: 0;
      }

      .hero h1 img {
        width: 58px;
        height: 42px;
        object-fit: contain;
      }

      .hero h1 span {
        color: var(--orange);
      }

      .hero h2 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 4px 0 8px;
        color: #ffffff;
        font-size: clamp(20px, 2vw, 28px);
        line-height: 1.18;
      }

      .hero p {
        margin: 0 0 22px;
        color: #d7e8f7;
        font-size: 17px;
      }

      .hero-search {
        display: grid;
        grid-template-columns: 1fr 150px;
        width: min(760px, 100%);
        height: 54px;
        overflow: hidden;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
      }

      .hero-search label {
        display: grid;
        grid-template-columns: 50px 1fr;
        align-items: center;
        color: #1a4268;
      }

      .hero-search input {
        min-width: 0;
        height: 100%;
        color: #526274;
        border: 0;
        outline: 0;
      }

      .hero-search button {
        color: #ffffff;
        background: var(--orange);
        border: 0;
        font-weight: 900;
      }

      .quick-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(130px, 1fr));
        gap: 18px;
        width: min(760px, 100%);
        margin-top: 24px;
      }

      .quick-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 48px;
        padding: 0 18px;
        color: #ffffff;
        background: rgba(17, 96, 156, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        font-size: 13px;
        font-weight: 900;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
      }

      .quick-actions a:first-child {
        background: var(--orange);
      }

      .content {
        width: min(1280px, calc(100% - 42px));
        margin: 0 auto;
      }

      .categories {
        display: grid;
        grid-template-columns: repeat(7, minmax(112px, 1fr));
        gap: 20px;
        padding: 14px 0 16px;
      }

      .category {
        position: relative;
        display: grid;
        grid-template-rows: 48px auto;
        min-height: 76px;
        place-items: center;
        gap: 5px;
        padding: 8px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #dfe9f2;
        border-radius: 9px;
        box-shadow: 0 8px 18px rgba(20, 48, 78, 0.06);
        font-size: 13px;
        font-weight: 950;
      }

      .category-visual {
        display: grid;
        width: 78px;
        height: 48px;
        place-items: center;
      }

      .category img {
        width: 78px;
        height: 48px;
        object-fit: contain;
        transform: translateY(-2px) scale(2);
        transform-origin: center;
      }

      .category-label {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 18px;
        padding: 0 4px;
        background: rgba(255, 255, 255, 0.84);
        border-radius: 5px;
      }

      .category .emoji {
        display: grid;
        width: 60px;
        height: 38px;
        place-items: center;
        color: #0d5488;
        font-size: 30px;
      }

      .layout {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr) 278px;
        gap: 20px;
        align-items: start;
        padding-bottom: 22px;
      }

      .panel,
      .card,
      .feed {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(20, 48, 78, 0.07);
      }

      .filter-panel {
        padding: 18px 12px;
      }

      .panel-title,
      .section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 0 16px;
      }

      .panel-title strong,
      .section-title h2 {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: #17385a;
        font-size: 20px;
        font-weight: 950;
      }

      .section-title a {
        color: #1665aa;
        font-size: 12px;
        font-weight: 850;
      }

      .section-title .all-announcements-link {
        white-space: nowrap;
        color: #1665aa;
        font-size: 12px;
        font-weight: 700;
      }

      .switcher {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 16px;
      }

      .switcher button {
        height: 36px;
        color: #17476e;
        background: #ffffff;
        border: 1px solid #d5e1ec;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 900;
      }

      .switcher button.active {
        color: #ffffff;
        background: #1569ad;
        border-color: #1569ad;
      }

      .field {
        display: grid;
        gap: 7px;
        margin-bottom: 12px;
      }

      .field span {
        color: #28445f;
        font-size: 12px;
        font-weight: 900;
      }

      .field select,
      .field input {
        width: 100%;
        height: 38px;
        padding: 0 12px;
        color: #6a7785;
        background: #fbfdff;
        border: 1px solid #d9e3ed;
        border-radius: 6px;
        font-size: 12px;
      }

      .price-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .apply-btn,
      .wide-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 43px;
        color: #ffffff;
        background: var(--orange);
        border: 0;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 950;
      }

      .reset-btn {
        display: block;
        margin: 14px auto 0;
        color: #1665aa;
        background: none;
        border: 0;
        font-size: 12px;
        font-weight: 900;
      }

      .sell-ad {
        position: relative;
        min-height: 192px;
        margin-top: 16px;
        overflow: hidden;
        padding: 112px 18px 18px;
        color: #ffffff;
        background:
          linear-gradient(180deg, transparent 0%, rgba(5, 36, 64, 0.86) 58%, rgba(5, 36, 64, 0.98)),
          url("/assets/pub1.png") center / cover;
        border-radius: 7px;
        box-shadow: 0 12px 24px rgba(20, 48, 78, 0.14);
      }

      .sell-ad strong {
        display: block;
        font-size: 17px;
        line-height: 1.08;
      }

      .sell-ad span {
        display: block;
        margin: 8px 0 13px;
        color: #d9e8f4;
        font-size: 12px;
      }

      .sell-ad a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        color: #ffffff;
        background: #1665aa;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 900;
      }

      .listings {
        display: grid;
        gap: 16px;
      }

      .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }

      .ad-card {
        position: relative;
        overflow: hidden;
      }

      .ad-card figure {
        position: relative;
        height: 178px;
        margin: 0;
        overflow: hidden;
        background: #dde8f2;
      }

      .ad-card figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .pill {
        position: absolute;
        top: 9px;
        left: 9px;
        display: inline-flex;
        min-height: 24px;
        align-items: center;
        padding: 0 9px;
        color: #ffffff;
        background: var(--orange);
        border-radius: 7px;
        font-size: 11px;
        font-weight: 950;
      }

      .pill.blue {
        background: #1c78bd;
      }

      .save {
        position: absolute;
        top: 9px;
        right: 9px;
        display: grid;
        width: 27px;
        height: 27px;
        place-items: center;
        color: #ffffff;
        background: rgba(7, 30, 50, 0.34);
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 50%;
      }

      .ad-body {
        padding: 12px 12px 10px;
      }

      .ad-body h3 {
        margin: 0 0 5px;
        color: #17395b;
        font-size: 15px;
        line-height: 1.2;
      }

      .price {
        display: block;
        margin-bottom: 7px;
        color: #0e5e9d;
        font-size: 16px;
        font-weight: 950;
      }

      .meta,
      .stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        color: #6d7b8c;
        font-size: 11px;
        font-weight: 700;
      }

      .stats {
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
        color: #314d68;
      }

      .stats span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
      }

      .heart {
        color: var(--red);
      }

      .event-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }

      .event {
        position: relative;
        min-height: 90px;
        overflow: hidden;
        padding: 12px 12px 11px 60px;
        color: #ffffff;
        background:
          linear-gradient(90deg, rgba(7, 37, 64, 0.98), rgba(7, 37, 64, 0.28)),
          url("/assets/pub2.png") center / cover;
        border-radius: 8px;
      }

      .event:nth-child(2) {
        background-image:
          linear-gradient(90deg, rgba(7, 37, 64, 0.98), rgba(7, 37, 64, 0.28)),
          url("/assets/pub3.png");
      }

      .event:nth-child(3) {
        background-image:
          linear-gradient(90deg, rgba(7, 37, 64, 0.98), rgba(7, 37, 64, 0.28)),
          url("/assets/showroom.png");
      }

      .date {
        position: absolute;
        top: 10px;
        left: 10px;
        display: grid;
        width: 40px;
        height: 48px;
        place-items: center;
        color: #133657;
        background: #ffffff;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
      }

      .date strong {
        display: block;
        color: #133657;
        font-size: 18px;
      }

      .event h3 {
        margin: 3px 0 10px;
        font-size: 13px;
      }

      .event small,
      .event span {
        display: block;
        color: #dceafb;
        font-size: 11px;
        font-weight: 800;
      }

      .side-stack {
        display: grid;
        gap: 16px;
      }

      .side-card {
        padding: 14px;
      }

      .garage-list,
      .community-list {
        display: grid;
        gap: 12px;
      }

      .garage-mini {
        display: grid;
        grid-template-columns: 84px 1fr;
        gap: 11px;
        align-items: start;
        padding-bottom: 12px;
        border-bottom: 1px solid #e6edf4;
      }

      .garage-mini:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }

      .garage-mini img {
        width: 84px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
      }

      .garage-mini strong {
        display: block;
        color: #17395b;
        font-size: 13px;
      }

      .rating {
        color: #f7a21b;
        font-size: 12px;
        font-weight: 950;
      }

      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 5px 0;
      }

      .chips span {
        display: inline-flex;
        min-height: 22px;
        align-items: center;
        padding: 0 7px;
        color: #2470a7;
        background: #eaf4fc;
        border-radius: 5px;
        font-size: 10px;
        font-weight: 850;
      }

      .side-card .wide-btn {
        margin-top: 12px;
        min-height: 32px;
        background: #1665aa;
      }

      .post {
        display: grid;
        gap: 7px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e6edf4;
      }

      .post:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }

      .post-head {
        display: grid;
        grid-template-columns: 34px 1fr;
        gap: 9px;
        align-items: center;
      }

      .avatar {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        color: #ffffff;
        background: linear-gradient(135deg, #155f9f, #ff7a21);
        border-radius: 50%;
        font-size: 12px;
        font-weight: 950;
      }

      .post strong {
        color: #17395b;
        font-size: 13px;
      }

      .post small,
      .garage-mini small {
        display: block;
        color: #758496;
        font-size: 11px;
        font-weight: 700;
      }

      .post p {
        margin: 0;
        color: #2b4763;
        font-size: 12px;
        line-height: 1.35;
      }

      .post-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
      }

      .post-gallery img {
        height: 54px;
        width: 100%;
        object-fit: cover;
        border-radius: 5px;
      }

      .footer {
        color: #dceaf8;
        background: #082d52;
      }

      .footer-inner {
        display: grid;
        grid-template-columns: 260px 1fr auto;
        align-items: center;
        gap: 20px;
        width: min(1280px, calc(100% - 42px));
        min-height: 74px;
        margin: 0 auto;
      }

      .footer .brand strong {
        font-size: 24px;
      }

      .footer .brand img {
        width: 58px;
        height: 40px;
      }

      .footer-links,
      .social {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        align-items: center;
      }

      .footer-links {
        justify-content: center;
      }

      .footer a {
        color: #dceaf8;
        font-size: 12px;
        font-weight: 750;
      }

      .social span {
        display: grid;
        width: 22px;
        height: 22px;
        place-items: center;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        font-size: 11px;
        font-weight: 900;
      }

      @media (max-width: 1180px) {
        .topbar {
          grid-template-columns: auto 1fr auto;
          padding: 0 20px;
        }

        .main-nav {
          gap: 18px;
        }

        .categories {
          grid-template-columns: repeat(4, minmax(130px, 1fr));
        }

        .layout {
          grid-template-columns: 210px minmax(0, 1fr);
        }

        .side-stack {
          grid-column: 1 / -1;
          grid-template-columns: 1fr 1fr;
        }

        .grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      @media (max-width: 860px) {
        .topbar {
          position: static;
          grid-template-columns: 1fr auto;
          min-height: auto;
          padding: 12px 16px;
        }

        .main-nav {
          grid-column: 1 / -1;
          justify-content: flex-start;
          gap: 22px;
          overflow-x: auto;
          padding-bottom: 2px;
        }

        .main-nav a {
          padding: 4px 0 12px;
        }

        .main-nav a.active::after {
          bottom: 3px;
        }

        .hero::after {
          opacity: 0.28;
        }

        .hero-search {
          grid-template-columns: 1fr;
          height: auto;
        }

        .hero-search label {
          min-height: 52px;
        }

        .hero-search button {
          min-height: 46px;
        }

        .quick-actions,
        .layout,
        .side-stack,
        .event-strip {
          grid-template-columns: 1fr 1fr;
        }

        .categories {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 560px) {
        .brand strong {
          font-size: 23px;
        }

        .brand img {
          width: 54px;
          height: 40px;
        }

        .top-actions {
          gap: 8px;
        }

        .icon-button {
          width: 38px;
          height: 38px;
        }

        .hero-inner,
        .content,
        .footer-inner {
          width: calc(100% - 24px);
        }

        .quick-actions,
        .layout,
        .side-stack,
        .grid,
        .event-strip,
        .footer-inner {
          grid-template-columns: 1fr;
        }

        .categories {
          gap: 10px;
        }

        .hero h2 {
          align-items: flex-start;
        }

        .footer-inner {
          justify-items: start;
          padding: 18px 0;
        }
      }

      .news2-soft-type :where(
        .brand strong,
        .eyebrow,
        .main-nav a,
        .cart-count,
        .hero-search button,
        .quick-actions a,
        .category,
        .panel-title strong,
        .section-title h2,
        .section-title a,
        .switcher button,
        .field span,
        .apply-btn,
        .wide-btn,
        .reset-btn,
        .sell-ad strong,
        .sell-ad a,
        .pill,
        .price,
        .date,
        .date strong,
        .event small,
        .event span,
        .garage-mini strong,
        .rating,
        .chips span,
        .avatar,
        .post strong,
        .social span
      ) {
        font-weight: 600;
      }

      .news2-soft-type :where(.brand small, .meta, .stats, .post small, .garage-mini small, .footer a) {
        font-weight: 400;
      }

      .news2-soft-type :where(strong, b, h2, h3, button, a) {
        font-weight: 600;
      }

      .news2-soft-type .hero {
        display: grid;
        min-height: 330px;
        background:
          linear-gradient(90deg, rgba(3, 24, 46, 0.56), rgba(4, 33, 58, 0.42) 36%, rgba(3, 24, 46, 0.38) 64%, rgba(3, 24, 46, 0.56)),
          linear-gradient(180deg, rgba(5, 26, 45, 0.18), rgba(5, 26, 45, 0.12)),
          url("/assets/showroom.png") center / cover no-repeat;
      }

      .news2-soft-type .hero::before {
        background:
          linear-gradient(180deg, rgba(255, 122, 33, 0.1), transparent 46%),
          linear-gradient(90deg, rgba(1, 20, 36, 0.36), transparent 27%, transparent 73%, rgba(1, 20, 36, 0.3));
      }

      .news2-soft-type .hero::after {
        content: "Passionnes\A d'auto & moto\A a Madagascar";
        display: block;
        right: clamp(54px, 7vw, 126px);
        top: 86px;
        bottom: auto;
        width: auto;
        aspect-ratio: auto;
        color: #ffffff;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-family: "Segoe Print", "Comic Sans MS", cursive;
        font-size: clamp(14px, 1.35vw, 20px);
        font-weight: 600;
        line-height: 1.12;
        text-align: center;
        white-space: pre;
        text-shadow: 0 3px 9px rgba(0, 0, 0, 0.58);
        transform: rotate(-8deg);
      }

      .news2-soft-type .hero-inner {
        display: flex;
        min-height: 330px;
        align-items: center;
        justify-content: center;
        width: min(1180px, calc(100% - 48px));
        padding: 24px 0 28px;
      }

      .news2-soft-type .hero-copy {
        width: min(735px, 100%);
        margin: 0 auto;
        text-align: left;
      }

      .news2-soft-type .hero h1,
      .news2-soft-type .hero h2 {
        justify-content: flex-start;
      }

      .news2-soft-type .hero h1 {
        font-weight: 700;
      }

      .news2-soft-type .hero h2 {
        align-items: center;
        font-weight: 500;
      }

      .news2-soft-type .hero-search,
      .news2-soft-type .quick-actions {
        margin-right: 0;
        margin-left: 0;
      }

      .news2-soft-type .hero-search {
        width: min(735px, 100%);
      }

      .news2-soft-type .quick-actions {
        width: min(735px, 100%);
        gap: 18px;
      }

      .news2-soft-type .ad-card figure {
        background: #f7f9fc;
      }

      .news2-soft-type .ad-card figure img {
        padding: 10px;
        object-fit: contain;
        background: #ffffff;
      }

      .news2-soft-type .ad-body h3 {
        font-weight: 600;
      }

      .listing-actions {
        display: flex;
        justify-content: flex-start;
        margin: -4px 0 2px;
      }

      .view-all-btn {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        color: #ffffff;
        background: var(--orange);
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
        box-shadow: 0 10px 18px rgba(255, 122, 33, 0.18);
      }

      .cart-count[hidden] {
        display: none;
      }

      .switcher label {
        position: relative;
        display: grid;
      }

      .switcher input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }

      .switcher span {
        display: inline-flex;
        height: 36px;
        align-items: center;
        justify-content: center;
        color: #17476e;
        background: #ffffff;
        border: 1px solid #d5e1ec;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
      }

      .switcher input:checked + span {
        color: #ffffff;
        background: #1569ad;
        border-color: #1569ad;
      }

      .selected-vehicle-label {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-left: 8px;
        color: var(--orange);
        font-size: 13px;
        vertical-align: middle;
      }

      .clear-vehicle-filter {
        min-height: 24px;
        padding: 0 8px;
        color: #b91c1c;
        background: #fee2e2;
        border: 1px solid #fca5a5;
        border-radius: 6px;
        font-size: 11px;
      }

      .ad-body h2 {
        margin: 0 0 5px;
        color: #17395b;
        font-size: 15px;
        line-height: 1.2;
      }

      .product .ad-body {
        position: relative;
        padding-right: 46px;
        padding-bottom: 14px;
      }

      .product-detail-arrow {
        position: absolute;
        right: 12px;
        bottom: 12px;
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        color: #1665aa;
        background: #e8f3ff;
        border: 1px solid #bdd9f4;
        border-radius: 50%;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
      }

      .empty-state {
        grid-column: 1 / -1;
        margin: 0;
        padding: 18px;
        color: #516174;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
      }

      .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 6px;
      }

      .pagination a,
      .pagination span,
      .pagination strong {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
      }

      .pagination a {
        color: #ffffff;
        background: var(--orange);
      }

      .pagination span,
      .pagination strong {
        color: #536477;
        background: #ffffff;
        border: 1px solid var(--line);
      }

      .cart-modal {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: grid;
        place-items: center;
        padding: 18px;
        background: rgba(15, 23, 42, 0.42);
      }

      .cart-modal[hidden] {
        display: none;
      }

      .cart-dialog {
        position: relative;
        display: grid;
        gap: 14px;
        width: min(420px, 100%);
        padding: 22px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
      }

      .cart-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        color: #1f2937;
        background: #f3f4f6;
        border: 0;
        border-radius: 50%;
        font-size: 20px;
      }

      .cart-title {
        color: #1d2f4f;
        font-size: 20px;
      }

      .cart-dialog p {
        margin: 0;
        color: #4b5563;
        font-size: 15px;
      }

      .cart-quantity {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
        gap: 8px;
        align-items: center;
      }

      .cart-quantity button,
      .cart-quantity input {
        min-height: 38px;
        border-radius: 7px;
        font-size: 15px;
        text-align: center;
      }

      .cart-quantity button {
        color: #ffffff;
        background: #1665aa;
        border: 0;
      }

      .cart-quantity input {
        color: #111827;
        background: #f8fafc;
        border: 1px solid var(--line);
      }

      .cart-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .cart-modal-actions a {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        color: #ffffff;
        background: #1665aa;
        border-radius: 7px;
        font-size: 13px;
      }

      .cart-modal-actions .primary {
        background: var(--orange);
      }

      @media (max-width: 860px) {
        .news2-soft-type .hero {
          background-position: center;
        }

        .news2-soft-type .hero::after {
          display: none;
        }

        .news2-soft-type .hero-inner {
          min-height: 360px;
        }

        .news2-soft-type .hero-copy {
          text-align: center;
        }

        .news2-soft-type .hero h1,
        .news2-soft-type .hero h2 {
          justify-content: center;
        }
      }

/* Shared inner-page layout */
.page-layout {
  padding-top: 16px;
}

.page-main {
  min-width: 0;
  --soft-shadow: 0 10px 24px rgba(9, 23, 46, 0.18);
}

/* Fit product details inside the central column, including near breakpoints. */
.page-main .product-detail {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.page-main .detail-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-card,
.page-main > .checkout-card,
.page-main > .invoice-document {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 48, 78, 0.07);
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.page-heading h1,
.page-heading h2 {
  margin: 0;
  color: #17385a;
  font-size: 22px;
  line-height: 1.15;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-main .checkout-grid,
.page-main .auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-main .auth-card,
.page-main .checkout-card {
  align-content: start;
  box-shadow: 0 10px 24px rgba(20, 48, 78, 0.07);
}

.checkout-form p,
.checkout-card label {
  display: grid;
  gap: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.checkout-card input,
.checkout-card select,
.checkout-card textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.checkout-form textarea,
.checkout-card textarea {
  min-height: 82px;
  resize: vertical;
}

.detail-card,
.invoice-document {
  padding: 18px;
}

.invoice-document {
  width: 100%;
  margin: 0;
}

.invoice-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.simple-table-wrap {
  overflow-x: auto;
}

.page-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 48, 78, 0.07);
}

.page-search input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: #142f4d;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.page-search .apply-btn {
  width: auto;
  min-width: 130px;
}

.page-main .page-garage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-main .page-garage-list .empty-state {
  grid-column: 1 / -1;
}

.page-main .garage-card,
.page-main .detail-card {
  min-width: 0;
}

.page-main .reception-card {
  width: 100%;
}

@media (max-width: 1180px) {
  .page-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-search {
    grid-template-columns: 1fr;
  }

  .page-search .apply-btn {
    width: 100%;
  }

  .page-main .page-garage-list {
    grid-template-columns: 1fr;
  }
}
