<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_9c72cdf4-c2be-40aa-be20-60503a322a14">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001978954</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <context id="C_abc156cd-7d6d-484e-89a4-751952c3b55a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001978954</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_f95939bb-e557-4c16-8103-f542071641b0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_8cea5399-dd4d-4c4e-8172-def0df670e8b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_4a6d55c5-0fd1-4e8c-b70a-af88dd234331">0001978954</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_74132072-c459-4e67-84ea-fd953df6031d">333-296270</ffd:RegnFileNb>
    <ffd:FnlPrspctsFlg
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_994e8d19-6c33-4a02-a32a-7f5d1d2ac1d2">false</ffd:FnlPrspctsFlg>
    <ffd:FeeExhibitTp
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_6bedff72-a691-42bd-8a5d-f045bede5b44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_ec15ac20-ba38-4072-a5c2-ea71a6810c73">424B5</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_99025201-a1fb-4b3d-9fc6-3ae0f44e9e39">F-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      id="F_024a9074-fe8d-4afc-8610-938bd9a0b06f">BBB Foods Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      id="F_b125a788-77eb-4acb-a8c2-3ddc250bc4a3">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      id="F_b46b14f3-e324-49a8-8092-6291780241e4">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      id="F_e061797f-e298-431d-8e8d-452a5df02b3b">Class A common shares, no par value</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      id="F_1cd7d964-dff2-4cda-85f8-a17bc71bd0f3">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      decimals="0"
      id="F_436da58b-5725-42f9-87e2-3dede918a871"
      unitRef="U_shares">15299800</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      decimals="2"
      id="F_266ae83a-89b0-475d-8e0d-9c69ef8be1e7"
      unitRef="U_USD">32.5</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      decimals="2"
      id="F_0cbb05b5-4e0e-4a0e-9212-38f04bac5aaa"
      unitRef="U_USD">497243500</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      decimals="7"
      id="F_627a0a02-3142-4dab-b2fb-efdedcf92ce6"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      decimals="2"
      id="F_0f7c1b0c-c78b-49e8-8782-1d7d03a6cc57"
      unitRef="U_USD">68669.33</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      decimals="0"
      id="F_515cd1c0-e25d-4c3f-9158-07526112a50d"
      unitRef="U_USD">497243500</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      decimals="2"
      id="F_e33e4177-d79a-498c-a8c7-07ebc86e5ee8"
      unitRef="U_USD">68669.33</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      decimals="2"
      id="F_9356cff7-fd60-497b-bacb-2dcf710fc540"
      unitRef="U_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      decimals="2"
      id="F_ee2f0e39-f570-43ef-a800-d0c15385376e"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_abc156cd-7d6d-484e-89a4-751952c3b55a"
      decimals="2"
      id="F_8e1da565-c15f-4e28-979b-154ce60baea1"
      unitRef="U_USD">68669.33</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_9c72cdf4-c2be-40aa-be20-60503a322a14"
      id="F_50904ae5-1d65-4dad-abaa-2d84b27f7226">&lt;p style="margin-left:1.12%;text-indent:0;margin-top:0;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;Calculated in accordance with Rule 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;). Payment of the registration fee at the time of filing of the registrant&#x2019;s Registration Statement on Form F-3 (File No. 333-296270) on May 27, 2026, was deferred pursuant to Rules 456(b) and 457(r) under the Securities Act and is paid herewith. This &#x201c;Calculation of Filing Fee Tables&#x201d; shall be deemed to update the &#x201c;Calculation of Filing Fee Tables&#x201d; filed as Exhibit 107 to the Registration Statement in accordance with Rules 456(b) and 457(r) under the Securities Act.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1.12%;text-indent:0;margin-top:0;margin-bottom:0;text-align:justify;"&gt;&lt;span style="white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;&#160;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1.12%;text-indent:0;margin-top:0;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;Assumes exercise in full of the underwriters&#x2019; option to purchase 1,995,626 additional shares.&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
</xbrl>
