<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024q2"
  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/2024q2/ffd-2024q2.xsd"
      xlink:type="simple"/>
    <context id="C_9dbadce2-e4cc-461f-a8f9-a99745958955">
        <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>2025-02-03</startDate>
            <endDate>2025-02-03</endDate>
        </period>
    </context>
    <context id="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001978954</identifier>
        </entity>
        <period>
            <startDate>2025-02-03</startDate>
            <endDate>2025-02-03</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      id="F_48bbb04b-26ce-4a34-a637-400b14d49340">0001978954</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      id="F_a30d8fc5-0e4d-4a75-9ba3-99a8163c6438">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      id="F_66786f03-9dee-4e9d-913e-16facb638225">F-1</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      id="F_ef48b927-89a0-45a4-926d-5669d2aabbed">F-1</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      id="F_bc042ce8-c846-426e-984d-e21b3e8b0552">BBB Foods Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      id="F_eb703a48-4771-4280-a937-616d5c7c3b3c">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      id="F_75f62c55-94a3-40da-ad58-3ab5c31de322">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      id="F_f4439603-c43b-4f81-ba17-9f77ee057d6f">Class Acommon shares,no par value </ffd:OfferingSctyTitl>
    <ffd:Rule457aFlg
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      id="F_9c5dccdb-f921-4df3-bff3-764613e163fc">true</ffd:Rule457aFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      decimals="0"
      id="F_fbf6aaed-4375-4cb7-875a-c21833c083a5"
      unitRef="U_USD">20125000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      decimals="2"
      id="F_a1757a17-7c93-41bc-9329-0d7727cf2644"
      unitRef="U_USD">30.55</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      decimals="2"
      id="F_c23cf0fc-6e06-46a6-9734-6974c00ac917"
      unitRef="U_USD">614818750</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      decimals="8"
      id="F_535eec84-e9b7-4f1b-8c79-01469a544f89"
      unitRef="U_pure">0.0001531</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      decimals="2"
      id="F_e8b4cd62-cf87-4278-a8ad-474f145f8913"
      unitRef="U_USD">94128.75</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      decimals="2"
      id="F_e6cbfd95-24b6-4ee6-adfc-c08c15ac5a61"
      unitRef="U_USD">614818750</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      decimals="2"
      id="F_a3db1fc9-dc34-45e1-b182-71e35f42ce37"
      unitRef="U_USD">94128.75</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      decimals="0"
      id="F_f711bf5e-94f9-4740-b482-4794a65b1a18"
      unitRef="U_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      decimals="0"
      id="F_dfeb6510-f6d1-4391-9462-e94bfa0f676f"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_dacc6ff6-c1dc-4fba-9d47-19f78a8be066"
      decimals="2"
      id="F_96310b8c-ce84-4b06-a9e5-cbdc24513e09"
      unitRef="U_USD">94128.75</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_9dbadce2-e4cc-461f-a8f9-a99745958955"
      id="F_a42aa4ef-c43f-41e7-bf09-2011685d55f6">&lt;div class="item-list-element-wrapper" style="display:flex;margin-top:2pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.333%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:3.333%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(1)&lt;/span&gt;&lt;div style="width:100%;display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Includes Class A common shares subject to the underwriters&#x2019; option to purchase additional Class A common shares.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="display:flex;margin-top:0;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:3.333%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:3.333%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(2)&lt;/span&gt;&lt;div style="width:100%;display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(c) under the U.S. Securities Act of 1933, as amended, based on the average reported high and low prices of the registrant&#x2019;s Class A common shares on the New York Stock Exchange on &lt;/span&gt;&lt;span style="color:#212529;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;January 31&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;, 2025, which was $30.55 per Class A common share.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
